Reding Text File

creative

Member
Hi
Can anyone help me to read from a text file. I am able to write, append lines to a text file. But I am not finding the BSFN to retrieve from text text file.

Regards
Creative
 
Hi,

I'm using 'Fetch Next Line from Flat File', B76B0220. It's from the Brazilian Localization, used to get lines from a bank flat file. It works with lines up to 1500 positions, if I'm not mistaken.
 
Hi creative,

I have already published a solution on this forum, how to create ReadFlatFile business function, later somebody "re-published" on this Forum.

Please, check the archives for these posts.

Let us know if you don't get any hit!

Regards,

Zoltán
 
I can find the thread you refer to. i ahve searched headers and bodies for "ReadFlatFile" for the past 3 years and only this thread shows up.
 
Create BSFN, and code.

FILE *fpFlat = (FILE *)NULL;
fpFlat = fopen( szFile1, "r");
fgets(szBuff, sizeof(szBuff), fpFlat);
fclose(fpFlat);

Regards.
 
Back
Top