Original Post
when i try to write strings (std::string from string.h) to files i get this error:
C:\Program Files\Microsoft Visual Studio\MyProjects\DATParseCRC32\main.cpp(8) : error C2679: binary ''<<'' : no operator defined which takes a right-hand operand of type ''class std::basic_string,class std::allocator<
char> >'' (or there is no acceptable conversion)
my code is:
i guess fout is made to write only data types in iostream, but i can cout strings so i should be able to fout them. please help.
ifstream fin("original.dat");ofstream fout("parsed.dat");string token;fout << token;