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

Home » Public Forums » archive » point_lun
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: point_lun [message #19252 is a reply to message #19032] Tue, 29 February 2000 00:00 Go to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
Martin Schultz wrote:
>
> Hallo Reimar!
>
> since I was looking at a similar issue yesterday night, I came across
> some
> statements about this in the online help. Look for "reading
> files:Windows platform"
> in the help index. It basically confirms what Craig said.
>
> If nothing else helps and you *really* need to read these ASCII files
> platform-
> independently, you'll probably have to resort to reading it as binary
> unformatted
> into your own buffer, filter all CR's (13B) in case there are any, and
> break the
> lines at the line feeds (10B). This still leaves out the Mac World,
> where they use only CR as far as I know...


Or, just read a line at a time, which is platform independent, and how ascii
files are normally read. To skip to the nth line:

lin=''
for i=0,n-1 do readf,un,lin

JD



--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: passing functions as arguments in IDL?
Next Topic: xmanager does not block

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

Current Time: Mon Dec 01 19:37:37 PST 2025

Total time taken to generate the page: 1.92365 seconds