text file save and load?
Posted: Thu Sep 29, 2011 10:50 am
Hello everyone
I need your help again.
In my game I want you to write words with a input.And I want to take that input and save it exactly like it is in a windows .txt file in my game directory.And then when I open the game and press load it would load that text again and place it on screen.
How would I do this? I have searched for other posts,I have found sprintf,loadvars,savevars and even cout and cin which I don't thinks gona work.
So basicly how to export to .txt and then how to inport it again. Also the .txt file should be created and not be edited on a exsisting one.
Hope I'm making sense here but any pointers would be much pleasing! 't thinks gona work.
So basicly how to export to .txt and then how to inport it again. Also the .txt file should be created and not be edited on a exsisting one.
Hope I'm making sense here but any pointers would be much pleasing!
I need your help again.
In my game I want you to write words with a input.And I want to take that input and save it exactly like it is in a windows .txt file in my game directory.And then when I open the game and press load it would load that text again and place it on screen.
How would I do this? I have searched for other posts,I have found sprintf,loadvars,savevars and even cout and cin which I don't thinks gona work.
So basicly how to export to .txt and then how to inport it again. Also the .txt file should be created and not be edited on a exsisting one.
Hope I'm making sense here but any pointers would be much pleasing! 't thinks gona work.
So basicly how to export to .txt and then how to inport it again. Also the .txt file should be created and not be edited on a exsisting one.
Hope I'm making sense here but any pointers would be much pleasing!