C++ writing int to binary file

Jessie Morris jessie at confettiantiques.com
Mon Apr 27 20:52:20 MDT 2009


Hello, I've been trying 

"
items = 3;
file.write(reinterpret_cast<char *>(items),sizeof(int));

"
and keep getting an access violation error. Any help?


-- 

Jessie Morris


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://plug.org/pipermail/plug/attachments/20090427/baadf814/attachment.bin 


More information about the PLUG mailing list