Saving Structure To file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Lespaul36 (lespaul36_at_none.net)
Date: 08/10/04


Date: Mon, 9 Aug 2004 22:10:22 -0700

I have an icon structure..so it is a structure with other structures in it.
I need to save it to a binary file. I have done some googling..but not much
luck.

How can I do this? Also, will long data type be converted to the proper 4
bytes? Do I need to go through each structure and make the stream that way?
If so, how do I convert longs into the 4 byte arrays?
TIA



Relevant Pages

  • Re: binary file
    ... a text file and converting the text data obtained into a binary file. ... You've declared two arrays, each of which has only one element. ... you can pass them to fwrite. ...
    (comp.lang.c)
  • Re: How to read binary data into a STRUCT?
    ... Dennis JD Myrén ... > I'm trying to figure out how to read a formatted binary file into a ... > in the structure definition. ... The above example is using arrays in the STRUCT definition. ...
    (microsoft.public.dotnet.general)
  • Re: Copy portions of array
    ... binary file. ... When compiled VB is astonishingly fast at dealing with Byte Arrays, ... discovered this when I wrote a Delphi DLL for sorting large files. ... I gave the DLL an option to CallBack to VB to perform the comparison, ...
    (microsoft.public.vb.general.discussion)
  • How to save C++ objects using Cocoa?
    ... I need to save arrays of custom C++ class objects in to a binary file. ... I am having to use C++ containers for cross compatibility. ...
    (comp.sys.mac.programmer.help)
  • Re: How to Link a Miscellaneous File
    ... FWIW, a resource such as a bitmap, icon or cursor is a binary file. ... CLC FAQ ...
    (comp.lang.c)