Page 1 of 1

Text File Processing

Posted: Sun Sep 29, 2013 2:08 pm
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 2877 times
TestChr0.zip
Source files ( .prg, .hbp, hbc ) of TestChr0 prg
(661 Bytes) Downloaded 285 times
Any idea :?

Viva HMG :D

Re: Text File Processing

Posted: Mon Sep 30, 2013 10:03 am
by bpd2000
Thank you Esgici for sharing