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

Home » Public Forums » archive » Re: Problems reading binary files - pointer at 4096 gives EOF
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: Problems reading binary files - pointer at 4096 gives EOF [message #19475 is a reply to message #19473] Wed, 22 March 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Liam Gumley (Liam.Gumley@ssec.wisc.edu) writes:

> A simple test case worked fine for me in IDL 5.3 / Windows98:
>
> IDL Version 5.3 (Win32 x86). (c) 1999, Research Systems, Inc.
>
> IDL> openw, 1, 'zzz.dat' & writeu, 1, bytarr(16384) & close, 1
> IDL> openr, lun, 'zzz.dat', /get_lun
> IDL> point_lun, lun, 4096L
> IDL> print, eof(lun)
> 0
> IDL> info = fstat(lun)
> IDL> print, info.cur_ptr
> 4096
>
> Am I missing something?

You know what this is? It just occurred to me.

This is that same old file pointer bug Wayne Landsman
alerted us to on at least two occasions now. I have
*got* to make time to write some more articles for my
web page. I'm forgetting more IDL these days than I
have learned. :-(

Anyway, this program can be fixed by adding a BINARY
keyword to the OPENR statement when you are reading the
data.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Corel Linux & IDL -- Possible?
Next Topic: Secret to resizing text widgets

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

Current Time: Sat Oct 11 21:55:30 PDT 2025

Total time taken to generate the page: 0.55984 seconds