On Sat, Jun 04, 2005 at 02:11:01PM -0400, Pablo Mora wrote: > Hi all, > > I am programming in C and I need to read a quantity of lines of a > file. How can I know when a line arrives at his end? exists some > special character? exists some file in C in the kernel of FreeBSD > (4.11) where I can find somewhat similar? > > example: how read four lines of a file.
Take a look at fgets(3). The end of line character (in FreeBSD) is '\n'. -- La prueba mas fehaciente de que existe vida inteligente en otros planetas, es que no han intentado contactar con nosotros. _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"