Advertisement

Save/Read binary files

Started by April 28, 2002 10:17 AM
2 comments, last by Xces 22 years, 10 months ago
Anybody got an example on how to read structs from/to (binary) files?
try the NeHe tutorials on loading ms3d and md2 models
Advertisement

  structname some_struct;ofstream fout("Filename.xxx", ios::binary);fout.write((char *)&some_struct, sizeof(some_struct));  


Easy as 3.1415926535897..
ok, thanx

This topic is closed to new replies.

Advertisement