Text File Processing
Posted: Sun Sep 29, 2013 2:08 pm
Hi All
Since I'm old fashioned, working on 16 bit issues yet![Sad :(](./images/smilies/icon_e_sad.gif)
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.
Any idea
Viva HMG![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Since I'm old fashioned, working on 16 bit issues yet
![Sad :(](./images/smilies/icon_e_sad.gif)
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.
Any idea
![Confused :?](./images/smilies/icon_e_confused.gif)
Viva HMG
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)