Altering the beginning of a file

radbelt_res_at_yahoo.com
Date: 03/24/05


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


Quantcast