Re: [netcdf-java] netCDF file deletion

On 4/13/2012 9:31 AM, John Caron wrote:
On 4/13/2012 8:12 AM, Lorenzo Bigagli wrote:
Dear all,

I am creating a temporary netCDF file by means of the netCDF Java API, to use it during some intermediate processing.
How can I delete it, afterwards?

Is there something like the java.io.delete() method, or any plan to implement such a mechanism?

Best regards,
   LB

---
Dott. Lorenzo Bigagli
Consiglio Nazionale delle Ricerche
Istituto di Metodologie per l'Analisi Ambientale (CNR-IMAA)

i: Area della Ricerca di Potenza, Contrada Santa Loja
    Zona Industriale, 85050 Tito Scalo (PZ), Italia
t: +39 0971 427221
f: +39 0971 427222
m: lorenzo.bigagli@xxxxxx

_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
Hi Lorenzo :

have a look at java.io.File.delete and java.io.File.createTempFile

John

sorry, i didnt explain that very well. after you close the file, use File.delete() on it. File.createTempFile() is just a way to generate a temporary file to begin with.

I will consider adding some convenience routines for this when i get a chance.




  • 2012 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: