2 fgets - read the next line from a file, newline is kept
13 This function reads the next line, including any trailing newline from
14 the open file associated with fd. Unlike fgetline, the trailing
15 newline is included in the return string.
17 If a line is read, it is returned, otherwise (EOF or ERROR) nil is returned.
20 > fd = fopen("/tmp/newfile", "w")
21 > fputs(fd, "chongo was here\n")
22 > fd2 = fopen("/tmp/newfile", "r")
28 > fd2 = fopen("/tmp/newfile", "r")
33 fd must be associated with an open file
39 errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
40 fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt