Subj : A little stringing along
To   : All
From : Sean Dennis
Date : Tue May 04 2010 11:12 pm

Hello, All.

I'm working on adding support for the GTUSER.BBS dropfile into my line of BBS
doors.  GTUSER.BBS, if you don't know, is a text file containing a single
string that is broken up into several parts seperated by spaces.  Don't laugh,
but I've never quite gotten down the "searching in the strings" stuff.  I guess
I was spoiled by the MID$ command in BASIC all those years ago. :)

Here's an example given to me by a GT Power sysop (this is all on a single line
when read in; there is a space between the last name and the "SY"):

=== Cut ===
A Daryl Stout SY,SH,KL,DR,DN,UP,PR,MS,MV,CC,RC,PW,CU,QK,MB,MU,CB,TB=05/05/02/01/03/01/01/60/6 0:120/120 LOCAL ANSI 5-4-10 480 307 18:53
=== Cut ===

What I'm wanting to do is this: I want to start at the beginning of the line
and read each "block" that's delimited by spaces into a string, so I can put
the last name in one string, the first name in one string, the graphics type in
another string, the DCE rate in another, so on and so forth.  All data will be
treated as strings and this will be read from a text file, so it's pretty easy
to get the data in.

I just am trying to figure out how to parse it correctly!

Any help is appreciated.

Thanks,
Sean

//[email protected] | http://nsbbs.info | ICQ: 19965647

... Celibacy is NOT hereditary.
--- GoldED/2 3.0.1
* Origin: Nocturnal State BBS - (423) 926-7999 - bbs.nsbbs.info (1:18/200)