Quote:
|
Originally Posted by Neal Turett
Assuming you're using Windows, you could use API calls as an alternate to fstream. Fstream is probably simpler, this is just in case you can't use fstream for some strange reason.
The relevant functions are CreateFile, SetFilePointerEx, WriteFile, and CloseFile. All of these are in kernel32.lib and defined in winbase.h. To access them, simply include windows.h.
|
I can use fstream, I had just redone my program to get rid of it cause it was acting funny, but by rewriting all of that code it fixed whatever problems I was having. Plus, I have about 9 or 10 hours till I have to use the program, so simpler is better :-).