Page 1 of 1

Append to yourfile.txt SDF / Getting rid of eof marker

Posted: Tue Mar 12, 2013 2:36 am
by DenCo
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

Re: Append to yourfile.txt SDF / Getting rid of eof marker

Posted: Tue Mar 12, 2013 2:38 am
by DenCo
Sorry--- I meant Copy to yourfile.txt sdf // I'm sleepy ! ha

Re: Append to yourfile.txt SDF / Getting rid of eof marker

Posted: Tue Mar 12, 2013 2:48 am
by esgici
Set(<nSet> [, <xNewSetting> [, <xOption> ] ] ) --> xPreviousSetting

_SET_EOF <lFlag> | <cOnOff>

Defaults to FALSE on UN*X, but defaults to TRUE on
everything else. If set to FALSE, then Chr( 26 ) does not
get written when using COPY TO DELIMITED, COPY TO SDF,
or when closing any of the various text files that are
created using various SET values.
[This is a Harbour extension]

http://www.elektrosoft.it/tutorials/Har ... -guide.htm

Re: Append to yourfile.txt SDF / Getting rid of eof marker

Posted: Tue Mar 12, 2013 3:33 am
by DenCo
Thank you esgici,,, when I get home I'll read up on a lot of things, while out of the country all of your help on some of these issues have helped me move quickly on issues.

I truely appreciate.

Bill

Re: Append to yourfile.txt SDF / Getting rid of eof marker

Posted: Tue Mar 12, 2013 3:39 pm
by esgici
Hi Bill

Everything is for community :)

because I love those who love Clipper ;)

Happy HMG'ing :D

Re: Append to yourfile.txt SDF / Getting rid of eof marker

Posted: Wed Mar 13, 2013 1:56 am
by DenCo
Hi esgici,, I agree with you on you. Clipper still has mission "one" applications at some of the top 50 companies in the world. Not 500,, top 50 !

I know because I am there... This has been true for the past 25 years. It's true right now.

I wanted you to know this,, our love for Clipper is not near over..

With what I can see with Harbour now, and the unbelievable good work of all the people who have worked on this project,, I feel I can say the Clipper way might be around after all of us are gone !

Have a good day
Bill