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

Home » Public Forums » archive » Re: String Data file
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: String Data file [message #35859 is a reply to message #35858] Wed, 30 July 2003 19:55 Go to previous messageGo to previous message
andrew.cool is currently offline  andrew.cool
Messages: 47
Registered: July 2003
Member
Karthikayan Balakrishnan <lovedale27@hotmail.NOSPAM.com.PLEASEREMOVETHIS> wrote in message news:<HIuzA3.5Mw@sysadm.physics.uiowa.edu>...
> Hello All,
> I have a data file that looks like this:
> abc 1 2
> def 3 4.5
> ghij 2.3 23.44
> ...
> ...
> The first column is string, the next two are
> floating point. Is there any way I can read such a file?
> I am familiar with counting the number of rows and reading
> data file with just numbers, but this combination of numbers
> and strings is too much for me.
>
> Thanks in advance,
> Karthik.

Karthik,

Try this :-

line = 'ghij 2.3 23.44'

READS,line,s,f1,f2,form='(a4,x,f3.1,x,f5.2)'


Andrew
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BOX_CURSOR
Next Topic: minor glitch in total()

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

Current Time: Wed Oct 08 18:44:21 PDT 2025

Total time taken to generate the page: 0.00416 seconds