comp.lang.ada
 help / color / mirror / Atom feed
* Tokenizing a string in Ada
@ 2000-11-03 11:35 Rbbaldwin8
  2000-11-03 13:55 ` Florian Weimer
  2000-11-03 15:06 ` Ted Dennison
  0 siblings, 2 replies; 6+ messages in thread
From: Rbbaldwin8 @ 2000-11-03 11:35 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-11-03 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-03 11:35 Tokenizing a string in Ada Rbbaldwin8
2000-11-03 13:55 ` Florian Weimer
2000-11-03 15:06 ` Ted Dennison
2000-11-03  0:00   ` Tom Hargraves
2000-11-03  0:00     ` Larry Kilgallen
2000-11-03  0:00     ` Ted Dennison

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