Re: reading in a long line of data [message #60266 is a reply to message #60262] |
Fri, 09 May 2008 04:15   |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On May 8, 6:24 pm, David Fanning <n...@dfanning.com> wrote:
> te...@atmsci.msrc.sunysb.edu writes:
>> That's typically what I do. I think the version of IDL I am using
>> doesn't like this because the line of data is too long so I still get
>> the same error.
>
> Sigh...
>
> I'm out of time to work on this, but next time you
> try a question, please let us know what you have tried,
> what didn't work, and what the details are. I makes it
> a LOT easier to find time to help.
>
> I remember a discussion about this on the newsgroup
> recently. I can't remember what the bottom line was.
> Probably try to divide the file up into shorter lines.
> But I have to go.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
David,
you once wrote a nice little programme called Read_Tab_Lines which may
be of some use here:
http://groups.google.com/group/comp.lang.idl-pvwave/msg/7b09 330c920aefea
I'm not sure how ReadF handles cross-platform compatability regarding
carriage return / line feed use to determine where a row ends.
Sometimes ReadF seems to stop at the end of a row for me; sometimes it
thinks the whole file is one row, even if I can *see* the carriage
returns in it when I open it in WordPad.
Regards,
Chris
|
|
|