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

Home » Public Forums » archive » Deleting files from IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Deleting files from IDL [message #4350 is a reply to message #4276] Fri, 19 May 1995 00:00 Go to previous messageGo to previous message
knipp is currently offline  knipp
Messages: 68
Registered: January 1993
Member
In article it5@kwuz.nerc-keyworth.ac.uk, Fergus Gallagher <F.Gallagher@nerc.ac.uk> writes:
> cabr69@ccsun.strath.ac.uk ( "D.H.Brooks") wrote:
>> I'm running under Unix and if i use
>>
>> spawn,'rm filename'
>>
>> it doesn't work since filename in the IDL code is a variable (e.g.state.file).What i
>> would really like is an IDL command which removes a file but i don't > know of any.
>
> I would suggest
>
> IDL> spawn,'rm '+state.file
>
> or have I misunderstood?
>
> Fergus

Why not:

IDL> openr, unit, state.file, /get_lun, /delete, error=error
IDL> if error eq 0 then free_lun, unit else print, 'unable to open (delete)'


... and it should run under UNXI, VMS, MsWin, ....


Karl




------------------------------------------------------------ ------------

Karlheinz Knipp
knipp@ipi.uni-hannover.de

------------------------------------------------------------ ------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: map_set in idl 5
Next Topic: Re: drawing lines in IDL

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

Current Time: Wed Oct 08 13:36:22 PDT 2025

Total time taken to generate the page: 0.00458 seconds