Advertisement

simple file i/o

Started by November 19, 2000 12:20 PM
1 comment, last by FrigidHelix 24 years, 2 months ago
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.
Wrong forum.


Please state the nature of the debugging emergency.


sharewaregames.20m.com

Advertisement
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.
"Your superior intellect is no match for our puny weapons!"

This topic is closed to new replies.

Advertisement