simple file i/o
using c/c++ under windows, how would one read in and write out variables of varying sizes from a file. for example, if the file contained the following data in this order, how would it be read and saved?
char
long
long
char[20]
thanks for any help.
There are any number of ways to do this in C... for one, look up fread() and fwrite() in your help file. They''re pretty easy to use.
-Ironblayde
Aeon Software
Next thing you know, they''ll take my thoughts away.
-Ironblayde
Aeon Software
Next thing you know, they''ll take my thoughts away.
"Your superior intellect is no match for our puny weapons!"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement