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

Home » Public Forums » archive » tape I/O under Unix: eof always true?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
tape I/O under Unix: eof always true? [message #620] Thu, 31 December 1992 06:18
knight is currently offline  knight
Messages: 37
Registered: January 1992
Member
Can anybody give me some help on IDL's handling of eof while reading
tape under Unix? The following test fails. I mount a (test) tar tape
and do the following:

IDL> openr,lun,/get_lun,'/dev/rst0'
IDL> print,eof(lun)
1 ; <==== Why? Shouldn't it be zero?
IDL> point_lun,lun,100
IDL> print,eof(lun)
1 ; <==== Same question.
IDL> a=bytarr(2048)
IDL> readu,lun,a
IDL> print,eof(lun)
1 ; <==== Same question.

Thanks for any help,

Fred
--
=Fred Knight (knight@ll.mit.edu) (617) 981-2027
C-483\\MIT Lincoln Laboratory\\244 Wood Street\\Lexington, MA 02173
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Widget events from the keyboard?
Next Topic: Re: tape I/O under Unix: eof always true?

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

Current Time: Wed Oct 08 15:10:28 PDT 2025

Total time taken to generate the page: 0.00511 seconds