Text File Processing

Issues and Discussions related to Harbour

Moderator: Rathinagiri

Post Reply
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Text File Processing

Post by esgici »

Hi All

Since I'm old fashioned, working on 16 bit issues yet :(

Nanfor toolkit library has a dozen of FT_F* modules for text file processing and many of them implemented by Harbour with HB_F* prefix.

I couldn't found an equivalent of FT_FWRITELN function in HB_* modules.

The problem is : whenever FT_FWRITELN write a line to a text file, add a pair of CHR( 0 ) to end of this line.

So, if you copying a text file to another one, new file will become larger ( line count * 2 bytes ) than original.
Scren shoot of TestChr0 prg
Scren shoot of TestChr0 prg
TestChr0.PNG (1.47 KiB) Viewed 2815 times
TestChr0.zip
Source files ( .prg, .hbp, hbc ) of TestChr0 prg
(661 Bytes) Downloaded 283 times
Any idea :?

Viva HMG :D
Viva INTERNATIONAL HMG :D
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Text File Processing

Post by bpd2000 »

Thank you Esgici for sharing
BPD
Convert Dream into Reality through HMG
Post Reply