Title: EOF char
0D 0A in hex is a carriage return, line feed.
Can you write that at the end of a line using char(0D) + char(0a)
 
Bernie Lis
Megabytes, Inc.
----- Original Message -----
Sent: Tuesday, September 17, 2002 9:42 PM
Subject: EOF char

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

Reply via email to