NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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@xxxxxxxxxxxxxxxxFor 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.
netcdf-java
archives: