[AccessD] Replacing multiple tokens in a text file?

Gustav Brock gustav at cactus.dk
Mon May 31 13:53:09 CDT 2004


Hi Christopher

Yes, if the file is not very large (?), I would read the file line by
line, replace tokens for each line and append the line to a new file.

/gustav


> Given a text file with numerous (all different) tokens in it, how
> would I replace them?  I mean, I know how to replace tokens in a
> string, but I've never had to use a text file for a string before.

> Should I stuff the entire text file into an array and wash it through
> my detokenizing code until no more tokens are found?

> Should I read the file line-by-line, replacing tokens as I go?




More information about the AccessD mailing list