View Single Post
  #5   Spotlight this post!  
Unread 17-03-2004, 22:40
Neal Turett Neal Turett is offline
Registered User
#0201
 
Join Date: Nov 2002
Location: Rochester Hills
Posts: 34
Neal Turett is on a distinguished road
Re: stdlib.h for Dashboard Program

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.