Input/output strings/files

So I want to build this app and don't want to get into the mess of SQL, so I thought that txt files are gonna be more then sufficient for me... but I am at a dead end for quite a bit of time.
What I want to accomplish is this:
Get a string from a user (I use getline(cin, myString)), put that into a txt file with fstream (so, opening a file stream and just plugging the string into it, no problem so far), and then I want to get the whole string out of the txt file... this is where I'm stuck...

Edit: Done, the solution was: getline(myFileStream, MyString);
Thanks anyway :D
Last edited on
NP, ask if there is anything else you need ;)
Topic archived. No new replies allowed.