Re: Help reading and displaying
- Posted by Kat <gertie at PELL.NET> Dec 07, 2000
- 423 views
On 6 Dec 2000, at 12:21, ck lester wrote: > I don't know what specifically you need, so I'll start with the basics: > > There might be some code in The Archive that help you deal with > comma-delimited text/data files. There is: the strtoks file. You can use it to delimit stored data with any byte you wish: commas, periods, colons, asterisks, tildies, etc, or xml/html tags. I use a definition for the word "token" that has a widely inclusive scope, the words we use to communicate are tokens, anything used to carry info is a token. Strings are a collection of tokens. This sentence is a string of nine space-delimited tokens. This paragraph is a string of sentence-tokens delimited by periods. If i put this on a web page, then this page would be a series of paragraph-tokens delimited by <p> or <br> or somesuch xml tags. > Otherwise, what you need to do is > > 1. Load the file (generally line-by-line) > 2. Parse what you load (that is, place the text between the commas in > variables) There is a routine to deparse() the data, you supply the data, it returns the data as one seq, data delimited by the char/byte you specify. Generally, you don't need that routine tho, sence you can append data just as easily yourself. > > Guys, > > I usually put "and Gals" with this 'cuz we have some gals hangin' 'round > here.Kat waves!