Re: Use of /APPEND keyword [message #80832] |
Fri, 13 July 2012 08:04 |
titan
Messages: 59 Registered: March 2006
|
Member |
|
|
On Friday, July 13, 2012 2:16:49 PM UTC+2, Klemen wrote:
> /append just apends the data to an already existing file. So if you run the code and the file doesn't exist, it will first create it but afterwards the data will allways be written in the end of this file.
>
> If you run this code because of some reason several times and you always generate the sam output, you might delete the file first (FILE_DELETE). Once the IDL finish its processing, you will always get the same output (although it would then make more sense to comment the ouput part of the code).
>
> If the data are not always the same, add some idetntifier to the file, for instance something date/time based.
>
> Cheers, Klemen
Thanks a lot for the suggestion,
I will keep it in mind. I thought it would always have written a new file deleting the old one automatically.
cheers,
Titan
|
|
|
Re: Use of /APPEND keyword [message #80835 is a reply to message #80832] |
Fri, 13 July 2012 05:16  |
Klemen
Messages: 80 Registered: July 2009
|
Member |
|
|
/append just apends the data to an already existing file. So if you run the code and the file doesn't exist, it will first create it but afterwards the data will allways be written in the end of this file.
If you run this code because of some reason several times and you always generate the sam output, you might delete the file first (FILE_DELETE). Once the IDL finish its processing, you will always get the same output (although it would then make more sense to comment the ouput part of the code).
If the data are not always the same, add some idetntifier to the file, for instance something date/time based.
Cheers, Klemen
|
|
|