View Single Post
Re: Bitz and Bytes , saving with fWRITE
Old
  (#7)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Bitz and Bytes , saving with fWRITE - 22-01-2004

Like I suggested in IRC - loop through your vis table and write it one byte at a time.

During the loop check if the iterator is evenly divisible by 512. If it is, call fflush on your stream.

That should force the data in the stream to be written to the file, but, since I have not tested this I'm not sure.
  
Reply With Quote