Im having problems writing string into a binary file. This is my code:
ofstream outfile(\"myfile.txt\", ofstream::binary); std::string text = \"Text\"; outfi
Should probably also use c_str() to get the char pointer too, instead of that straight crazy cast.
c_str()