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

Home » Public Forums » archive » Re: Read/format mixed int/flt/strng 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: Read/format mixed int/flt/strng ascii files [message #31787 is a reply to message #31786] Tue, 20 August 2002 07:55 Go to previous messageGo to previous message
david[3] is currently offline  david[3]
Messages: 4
Registered: August 2002
Junior Member
Rick Towler wrote:

> "david" <knapp@ucsu.colorado.nospam.edu> wrote
>
>> I need to operate on large tab delimited ascii files that contain a very
>> wide mix of int, flt, string etc
>
> Can you elaborate on the format a little? When you say a wide mix, does
> that mean that any field could contain any data type or is there at least
> consistency within each file?

Yes, each file is self consistent, but file to file I have differing numbers of
fields
and numbers of rows. Type of field in a given position can change from a number
to
a character or int to flt etc...

> Do the string fields contain spaces?

I think I'm free of spaces (have underscores in)

>
> I have dealt with this by reading each line in the file as a string, parsing
> it with STRSPLIT and dealing with the parts but even this approach has
> limits.

So maybe the ultimate answer is that everyone has been doing this "by hand"
every time?



--
David Knapp
Atmospheric Odd Nitrogen Project
Atmospheric Chemistry Division
National Center for Atmospheric Research
Box 3000, Boulder, CO 80307
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Obtaining image of screen
Next Topic: Reading Wav files

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

Current Time: Sat Oct 11 04:46:57 PDT 2025

Total time taken to generate the page: 0.07825 seconds