>>>yes you are right, so get back to the first question how could I know number of bytes read by FGETS?
>>
>>You cannot and even if you could the problem of the split will be the same.
>
>the split problem will not exist with FGETS because we are reading till crriage return found, so we are safe.
>but you are saying no way to know how if fgets read the whole 8192 bytes or less, no work around this??
Thre's no problem if we read to CR but what if there're more than 8192 characters between CRs?
--sb--