open, read, and re-open a file
Davide Sacchetti
davide.sacchetti at ARPAL.ORG
Sat Jul 30 05:52:33 EDT 2005
you don't need the script to end to close your ascii file:
open file
read file
close file
read file (again)
bye bye
davide
--
Sacchetti Davide
ARPAL UO3 Centro Meteo Idrologico Regione Liguria - Dir. Scientifica
Via Bombrini, 8 16149 Genova (I)
tel: +39 010 6437 263
mail: davide.sacchetti at arpal.org web: www.meteoliguria.it
---------- Original Message -----------
From: Boyin Huang <boyin.huang at NOAA.GOV>
To: GRADSUSR at LIST.CINECA.IT
Sent: Fri, 29 Jul 2005 16:42:55 +0200
Subject: open, read, and re-open a file
> I can read a ascii file using "read(filename)".
>
> As document indicated, the file is "open" when first call is made,
> and "close" when script is terminated.
>
> My question is, can I "re-open" a file before termination?
>
> e.g. The file contains SST and SAT in two columns, and I want to
> plot SST and SAT in two different plots. I want to open the file,
> read SST and plot it, I want to re-open the same file and read SAT
> and plot.
>
> Can we do this?
------- End of Original Message -------
More information about the gradsusr
mailing list