comp.lang.ada
 help / color / mirror / Atom feed
From: rbbaldwin8@cs.com (Rbbaldwin8)
Subject: Tokenizing a string in Ada
Date: 03 Nov 2000 11:35:37 GMT
Date: 2000-11-03T11:35:37+00:00	[thread overview]
Message-ID: <20001103063537.25697.00000237@ng-mf1.news.cs.com> (raw)

Hello.  I'm new at Ada and have a problem in an application I need to write.  

I need to read lines from a text file which consist of a mixture of strings and
numeric values separated by commas and use these values in the application. 
The format of each line is the same as far as which data is in each position. 
I think the safest way to do this is to read each line into a fixed-length
string, then split it at the commas.  Strings in the CSV lines are not quoted
but do not contain  commas within the strings.

How can I do this in Ada.  I can't find a string function like C's strtok or
TCL's split, or am I misssing something.

Thanks in advance for your help.



             reply	other threads:[~2000-11-03 11:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-03 11:35 Rbbaldwin8 [this message]
2000-11-03 13:55 ` Tokenizing a string in Ada Florian Weimer
2000-11-03 15:06 ` Ted Dennison
2000-11-03  0:00   ` Tom Hargraves
2000-11-03  0:00     ` Ted Dennison
2000-11-03  0:00     ` Larry Kilgallen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox