home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.idl-pvwave
- Path: sparky!uunet!wupost!micro-heart-of-gold.mit.edu!xn.ll.mit.edu!ll.mit.edu!knight
- From: knight@ll.mit.edu (Fred Knight)
- Subject: tape I/O under Unix: eof always true?
- Message-ID: <1992Dec31.141848.354@ll.mit.edu>
- Originator: knight@ll.mit.edu (Fred Knight)
- Sender: news@ll.mit.edu
- Reply-To: knight@ll.mit.edu (Fred Knight)
- Organization: Group 45, MIT Lincoln Lab.
- Date: Thu, 31 Dec 92 14:18:48 GMT
- Lines: 23
-
-
-
- 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
-