Oh god. You're going to hate me.
I just found out what's wrong. It turns out that when I changed the input method for the playername variable, I screwed it up. The file was outputting properly,...
Type: Posts; User: NightDaemon
Oh god. You're going to hate me.
I just found out what's wrong. It turns out that when I changed the input method for the playername variable, I screwed it up. The file was outputting properly,...
*sigh* Nope, still not working. This is starting to irritate me..
Apparently, it can't identify the c_str() function...
What header files do I need for that? And what is the is. stuff for?
Well, I was opening the output file in a good text editor, and it clearly printed the null character at the start of the file. But just in case, here is the loading half of the equation:
int...
Still has the same problem.
Same as the last time, but with
ofstream saveto ( "stockmarket.sav" );
replaced with
ofstream saveto ( "stockmarket.sav" , ios::trunc );
Nope, didn't work.
Hi. I'm trying to use ofstream to save the data for the game I'm coding, but I've hit a snag. When it saves the game, for some reason it outputs a null character to the start of the file, meaning...