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

Issues and Discussions related to Harbour

Moderator: Rathinagiri

Post Reply
DenCo
Posts: 32
Joined: Wed Dec 29, 2010 5:12 pm
Location: Tennessee / USA
Contact:

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

Post by DenCo » 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

DenCo
Posts: 32
Joined: Wed Dec 29, 2010 5:12 pm
Location: Tennessee / USA
Contact:

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

Post by DenCo » Tue Mar 12, 2013 2:38 am

Sorry--- I meant Copy to yourfile.txt sdf // I'm sleepy ! ha

User avatar
esgici
Posts: 4250
Joined: Wed Jul 30, 2008 9:17 pm
Location: iskenderun / Turkiye
Has thanked: 131 times
Been thanked: 42 times
Contact:

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

Post by esgici » Tue Mar 12, 2013 2:48 am

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
Viva INTERNATIONAL HMG :D

DenCo
Posts: 32
Joined: Wed Dec 29, 2010 5:12 pm
Location: Tennessee / USA
Contact:

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

Post by DenCo » Tue Mar 12, 2013 3:33 am

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

User avatar
esgici
Posts: 4250
Joined: Wed Jul 30, 2008 9:17 pm
Location: iskenderun / Turkiye
Has thanked: 131 times
Been thanked: 42 times
Contact:

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

Post by esgici » Tue Mar 12, 2013 3:39 pm

Hi Bill

Everything is for community :)

because I love those who love Clipper ;)

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D

DenCo
Posts: 32
Joined: Wed Dec 29, 2010 5:12 pm
Location: Tennessee / USA
Contact:

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

Post by DenCo » Wed Mar 13, 2013 1:56 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests