Append to yourfile.txt SDF / Getting rid of eof marker
Posted: Tue Mar 12, 2013 2:36 am
Hello all,,,
The other day I asked a question about appending *nix text files and got a great answer. I took the advise, wrote a function,, all ok.
This made me wonder about another issue.. Both Clipper and Harbour (in stock form) will place a "CTRL Z" / chr(26) at the end of the txt file as the standard end of file marker....
This is not a problem except that all my *nix customers receiving my text files complain about this end of file marker. (for years) So much so that my operators usually open our created text files in notepad/wordpad and remove the marker and save the file before sending it out to them...
So, this made me wonder if there was a setting or method in Harbour that will let me adjust this end of file marker in my text files I create ?
Thanks
Bill
The other day I asked a question about appending *nix text files and got a great answer. I took the advise, wrote a function,, all ok.
This made me wonder about another issue.. Both Clipper and Harbour (in stock form) will place a "CTRL Z" / chr(26) at the end of the txt file as the standard end of file marker....
This is not a problem except that all my *nix customers receiving my text files complain about this end of file marker. (for years) So much so that my operators usually open our created text files in notepad/wordpad and remove the marker and save the file before sending it out to them...
So, this made me wonder if there was a setting or method in Harbour that will let me adjust this end of file marker in my text files I create ?
Thanks
Bill