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

Home » Public Forums » archive » Re: reading in a long line of data
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 in a long line of data [message #60262 is a reply to message #60261] Fri, 09 May 2008 06:28 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Spon writes:

> you once wrote a nice little programme called Read_Tab_Lines which may
> be of some use here:

Humm, I don't think so, since the problem is that the file
is filling up the character buffer.

I think the usual solution it to open this file in some
kind of word processor, turn on word wrapping, and save
the file with some reasonable length lines. But some word
processors won't allow you to load a line of that length
either.

In that case, I think you have to make a large byte
array and try to read the data that way, then process
the byte array to obtain the data. I guess I would
try something like this.

OpenR, lun, 'myfile.dat', /Get_Lun
info = FSTAT(lun)
data = BytArr(info.size)
ReadU, lun, data
Free_lun, lun
actualData = Float(StrSplit(String(data), /EXTRACT))

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: storing in array
Next Topic: How to HIDE a WIDGET_BUTTON and dont hide the widget hierarchy ?

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

Current Time: Sat Oct 11 09:25:17 PDT 2025

Total time taken to generate the page: 0.08338 seconds