comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » File units (de)allocation in IDL - what is the proper way?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
File units (de)allocation in IDL - what is the proper way? [message #93459] Fri, 22 July 2016 02:05 Go to previous message
DAVIDE LENA is currently offline  DAVIDE LENA
Messages: 22
Registered: September 2011
Junior Member
Hello everyone,
when opening files to write outputs I usually do:

OPENW, unit1, 'file1.txt', /GET_LUN
OPENW, unit2, 'file2.txt', /GET_LUN
...
CLOSE, unit1
CLOSE, unit2

FREE_LUN, unit1
FREE_LUN, unit2

However, it seems that closing *and freeing* can be equally achieved with:

CLOSE, unit1, unit2, /ALL

Is this correct? Is there a best practice?
Thanks in advance.
Dave
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Read an ASCII file in a table based on delimeter line string
Next Topic: very very strange thing is happening with modfits......

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:48:33 PDT 2025

Total time taken to generate the page: 0.00427 seconds