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

Home » Public Forums » archive » Re: Reading large Ascii files
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: Reading large Ascii files [message #27633 is a reply to message #27632] Tue, 30 October 2001 08:30 Go to previous messageGo to previous message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
Isa Usman wrote:

> Hello,
>
> I am trying to read a single row from a large file. The amout of numbers per
> row is about 12500. So in IDL i have the following lines;
>
> readf,lun,format='(500F8.3)',ch1_val_s
>
> so that i only read 500 values at a time and it gives me the error;
>
> % Input line is too long for input buffer of 32767 characters.
>
> From what i can gather, IDL is trying to read the whole line first before it
> puts it into the array. Can anybody suggest a way round this please.
>
> Thanks
>
> Isa Usman

Yes - I think in this situation you will have to use readu to read the whole
file in to a very long byte array and then use where and the various string
commands to extract the data.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hypergeometric functions
Next Topic: Re: Resolution

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

Current Time: Sat Oct 11 01:18:21 PDT 2025

Total time taken to generate the page: 1.20398 seconds