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
Append to yourfile.txt SDF / Getting rid of eof marker
Moderator: Rathinagiri
Re: Append to yourfile.txt SDF / Getting rid of eof marker
Sorry--- I meant Copy to yourfile.txt sdf // I'm sleepy ! ha
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Append to yourfile.txt SDF / Getting rid of eof marker
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
_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 ![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Re: Append to yourfile.txt SDF / Getting rid of eof marker
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
I truely appreciate.
Bill
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Append to yourfile.txt SDF / Getting rid of eof marker
Hi Bill
Everything is for community![Smile :)](./images/smilies/icon_e_smile.gif)
because I love those who love Clipper![Wink ;)](./images/smilies/icon_e_wink.gif)
Happy HMG'ing![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Everything is for community
![Smile :)](./images/smilies/icon_e_smile.gif)
because I love those who love Clipper
![Wink ;)](./images/smilies/icon_e_wink.gif)
Happy HMG'ing
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Viva INTERNATIONAL HMG ![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Re: Append to yourfile.txt SDF / Getting rid of eof marker
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
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