I'm not sure I understand you. What's the max record len in the file?
>That works fine, except for the carriage return.
>I need to know if FGETS had got 8192 byte (No need for carriage return - use fwrite, or FGETS had less than 8192 byte, so I need to add carriage return FPUTS).
>any help on that.
>
>>You can use LLFF. A sample code (w/o any error handling)
>>lhIn = FOPEN(lcFileIn)
>>lhOut = FCREATE(lcFileOut)
>>DO WHILE NOT FEOF(lhIn )
>> lcLine = FGETS(lhIn,8192)
>> * Processing here
>> = FPUTS(lhOut, lcLine)
>>ENDDO
>>FCLOSE(lhIn)
>>FCLOSE(lhOut)
>>
>>
--sb--