[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: programming



J.A.Serralheiro, 2001-Nov-04 15:26 +0000:
> 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.
> 
> thanks

grep will do this, but you need a unique 'pattern' to match to.

jc

-- 
Jeff Coppock		Systems Engineer
Diggin' Debian		Admin and User



Reply to: