Skip to main content
gamedev.net
šŸ”’ Locked

ofstream problems

Started by pbbm2000 Dec 8, 2005 at 10:35 AM 0 replies 600+ views
Original Post
pbbm2000
pbbm2000
I'm trying to out put some data to a text file but my program keeps crashing. Heres my code. ofstream fout; fout.open("results.txt"); fout << 0.5; fout.close(); If I remm out fout << 0.5 it dosent crash, also if I change 0.5 to an integer or string it also runs fine. It only crashes if I try to output a decimal. I've done similar things many times and never had these problems before. Any help would be great, thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.