AndrewMozley
Programmer
I am using Clipper 5.2 to generate an output text file (of BACS transfers). My general approach is :
SET CONSOLE OFF
SET ALTERNATE TO &lFileName
SET ALTERNATE ON
?? "First line"
. . . .
? "Last line"
SET ALTERNATE OFF
SET ALTERNATE TO
SET CONSOLE ON
I see that there is a SUB character (Hex '1A') at the end of the file and I don't believe that I put it there.
It has all worked fine and been acceptable for years, but now the bank does not like the last character. Any ideas how I can suppress this from the file? I can edit it with Microsoft Word (as text) but that always appears to put an extra CRLF at the end, and anyway I can hardly make the user do that every time!
Thanks. Andrew Mozley
SET CONSOLE OFF
SET ALTERNATE TO &lFileName
SET ALTERNATE ON
?? "First line"
. . . .
? "Last line"
SET ALTERNATE OFF
SET ALTERNATE TO
SET CONSOLE ON
I see that there is a SUB character (Hex '1A') at the end of the file and I don't believe that I put it there.
It has all worked fine and been acceptable for years, but now the bank does not like the last character. Any ideas how I can suppress this from the file? I can edit it with Microsoft Word (as text) but that always appears to put an extra CRLF at the end, and anyway I can hardly make the user do that every time!
Thanks. Andrew Mozley