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

Home » Public Forums » archive » reading multiple tape files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
reading multiple tape files [message #624] Wed, 23 December 1992 20:31
ljg is currently offline  ljg
Messages: 5
Registered: January 1993
Junior Member
Can anyone suggest a good way of reading multiple files from a tape
device in (Unix) IDL? EOF() doesn't work with a tape file. I can
do something like:

openr,1,'/dev/nrst0'

while more_files_on_tape do begin

!error=0
on_ioerror, done

while (1) do begin
readu,1,buf
; . . . process data ...
endwhile

done:

if !error then print, !err_string
!error = 0
on_ioerror, null

endwhile

This will work to read a single file at a time, but the on_ioerror
immediately jumps to "done" on any attempt to read more than one file.
Also, I'm not really sure how to test for "more_files_on_tape", except
maybe checking for a "zero-length" file which might be a result
of two consecutive tape marks.

Thanks for any info.

Happy Holidays.

larry-granroth@uiowa.edu
[Message index]
 
Read Message
Previous Topic: Re: Command buffer
Next Topic: Minimization routine

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

Current Time: Fri Oct 10 15:22:50 PDT 2025

Total time taken to generate the page: 0.80111 seconds