On Sun, 4 Nov 2001, J.A.Serralheiro wrote:
> hi. Im trying to read a complete line from a text file.
> I use the fscanf( file, "[^\n]",buffer); butit doesnt work. I reads the
> entire file until overflow of the buffer.
> Can some one tell me how?
> I read scanf manual, but it wasnt of much help, for me at leastr.
>From an old proggie I wrote once:
while (fgets(buff, sizeof(buff)-1, filestream) != NULL)
/* do something with the 'buff' variable */