You can specify the second parameter which is the max size of the record. It's limited to 8192 characters.
>Hi all
>
>I’m using fgets() function to retrieve data from a text file. However, some lines are over 254 characters length and I just realized that I’m only getting a maximum of 254 characters.
>
>IWhat can I do to retrieve more than 254 chars through fgets() function?
>
>Thanks in advance
>
>Oscar Corte
--sb--