Text output not working?

Okay, so im trying to write to a file, and this is the code i came out with:

1
2
3
4
5
6
7
8
cout<<"File Destination: ";
getline(cin, file_path);
Sleep(1000);
Clear();
cout<<"Destination changed";
Sleep(1000);
beginning: 
file.open(file_path);



so, i closed the file, and its still not working. Its not saving it to the file. Any solutions? thanks guys! :)

PS: the Clear() function if one i created. its just system("cls")
Where are you writing to the file? You should probably post that part.
Topic archived. No new replies allowed.