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

Home » Public Forums » archive » READF data containing numbers and strings
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
READF data containing numbers and strings [message #30997] Wed, 29 May 2002 18:39 Go to previous message
Eric Vella is currently offline  Eric Vella
Messages: 8
Registered: April 1999
Junior Member
I need to read data from a file which contain lines with mixed variables
including strings, for example "1 2 text 3". I tried "READF, int1, int2,
str1, int3", but str1 gobbles up the rest of the line, leaving nothing for
int3. This happens even if I supply an explicit format like A4 for the
string. I can read the entire line into a single string, but then how do I
separate the variables? STR_SEP does not work, since the separation
character has to be a blank, and there can be multiple blanks between
variables. I am hoping there is something simple I am missing (as is
usually the case with IDL, simple only after you know the answer) ....
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: the length of line
Next Topic: Structure reforming

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

Current Time: Thu Oct 16 02:15:07 PDT 2025

Total time taken to generate the page: 1.28183 seconds