Anyone who uses (has used) strTok by Kat
- Posted by John F Dutcher <John_Dutcher at urmc.rochester.edu> Nov 18, 2004
- 677 views
I have the luxury of a mainframe to analyze files I build or revise in Euphoria for correctness. I tried "strTok" to parse a file, find two matching tokens received from an input screen....and make a change to one "field" in the parsed input, all the time "deparsing" and writing all records to a new output file. This is followed by uploading both files to the mainframe to compare large files with a utility. Parse/deparse works so beautifully .. except where multiple commas (representing "missing" values) occur in the input. Here the parse/deparse does not "hold" the consecutive commas when "deparsed" and they are lost upon output. Has anyone dealt with this easily ?? Now that my sequence comparison education has been upgraded...I will re-try Derek's sub-routine for the same file exercise.