Hi all
Must be missing something, but I've searched through the list of functions and drawn a blank.
Have written a routine that produces a text file in comma delimited format to send stats to the govt.
No problem with that part, but using the append command leaves an end-of-file character at....the end of the file.
This then gets rejected by whatever software the govt uses to read the file.
SET VAR vWrite = .vWrite + .vText
OUTPUT .vFileName APPEND
WRITE .vWrite
OUTPUT SCREEN
Even producing all or part of the file using the following does the same thing:
OUTPUT .vFileName
UNLOAD DATA FOR FileData AS CSV
OUTPUT SCREEN
How can I do a search and replace on the text file to get rid of this?
Or better yet, produce the file without the eof char in the first place?
TIA
Lucas
