Altering the beginning of a file
radbelt_res_at_yahoo.com
Date: 03/24/05
- Next message: *** Hendrickson: "Re: Altering the beginning of a file"
- Previous message: meek_at_skyway.usask.ca: "RE: read binary file question"
- Next in thread: *** Hendrickson: "Re: Altering the beginning of a file"
- Reply: *** Hendrickson: "Re: Altering the beginning of a file"
- Reply: beliavsky_at_aol.com: "Re: Altering the beginning of a file"
- Reply: Ken Fairfield: "Re: Altering the beginning of a file"
- Reply: Ken Plotkin: "Re: Altering the beginning of a file"
- Reply: Walter Spector: "Re: Altering the beginning of a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Mar 2005 09:56:39 -0800
Hi,
I have a code which outputs data to a file as it runs. It does not
know until of the run how many data will be saved to the file. I would
like to be able to put that information in the file header. I have
tried rewinding, but that deletes all of the information already saved,
and I have tried closing and reopening the file with the same result.
Is there a way to edit only the header after I have finished the
computations, or must I save everything to arrays and then save the
file all at once?
Thanks,
Shawn
- Next message: *** Hendrickson: "Re: Altering the beginning of a file"
- Previous message: meek_at_skyway.usask.ca: "RE: read binary file question"
- Next in thread: *** Hendrickson: "Re: Altering the beginning of a file"
- Reply: *** Hendrickson: "Re: Altering the beginning of a file"
- Reply: beliavsky_at_aol.com: "Re: Altering the beginning of a file"
- Reply: Ken Fairfield: "Re: Altering the beginning of a file"
- Reply: Ken Plotkin: "Re: Altering the beginning of a file"
- Reply: Walter Spector: "Re: Altering the beginning of a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]