Re: my dilemma -- hundreds of record types
- Posted by Kat <kat at kogeijin.com> Nov 15, 2002
- 430 views
On 15 Nov 2002, at 14:10, Chris Saik wrote: > > I think I answered my own question. The FTP feed > always begins new tags on a new line. I could just > check the first character of the line that I'm > currently reading in, and if it's a "<" then I can > assume it's a new tag. > > Although, if someone used "<" within the data, and it > just happened to be the first character of the line, > then it wouldn't work... > > hmmm... This is why i used gets(), it breaks on the newline, and each field i added to the base sequence in a nested way, making searching the ftpdata for a specific tag easy as pie, yet keeps the fields separate. Little databases like this are so easy in Euphoria. Kat > > > > Thank you Irv. I'm confused over one thing > > though... > > what if the data following the tag is several lines > > long, as in a paragraph? How would I print the > > entire > > data within the field, and stop when the program > > reaches the next tag? > > > > Thanks for your assistance, > > > > Chris > > > > > > >