[C] fwrite question
From: Elliot Marks (elliotmarks_at_email.net)
Date: 09/21/04
- Next message: Programmer Dude: "Re: Seeking very user-friendly, drag-and-drop GUI design tool."
- Previous message: Roger: "Re: Learning C++?"
- Next in thread: Alwyn: "Re: [C] fwrite question"
- Reply: Alwyn: "Re: [C] fwrite question"
- Reply: Thomas Matthews: "Re: [C] fwrite question"
- Maybe reply: Jack Klein: "Re: [C] fwrite question"
- Maybe reply: Jack Klein: "Re: [C] fwrite question"
- Maybe reply: Thomas Matthews: "Re: [C] fwrite question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Sep 2004 17:51:38 GMT
I want to write binary data to a file. The prototype for fwrite
specifies four arguments, the first being a pointer to an array
containing the data to be written. Must the data generated by my program
first be loaded into an array before fwrite can handle it?
In other words, suppose I have a loop containing code that generates 1
million numbers. Must the numbers first be loaded into an array, or can
they be written directly to a binary file by fwrite without this step?
- Next message: Programmer Dude: "Re: Seeking very user-friendly, drag-and-drop GUI design tool."
- Previous message: Roger: "Re: Learning C++?"
- Next in thread: Alwyn: "Re: [C] fwrite question"
- Reply: Alwyn: "Re: [C] fwrite question"
- Reply: Thomas Matthews: "Re: [C] fwrite question"
- Maybe reply: Jack Klein: "Re: [C] fwrite question"
- Maybe reply: Jack Klein: "Re: [C] fwrite question"
- Maybe reply: Thomas Matthews: "Re: [C] fwrite question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|