2 fgetline - read the next line from a file, newline is tossed
13 This function reads the next line, including any trailing newline from
14 the open file associated with fd. Unlike fgets, the trailing
15 newline is removed from the return string.
17 Empty lines return the null string. When the end of file is reached,
18 fgetline returns the null value. (Note the distinction between a null
19 string and a null value.)
21 If the line contained a numeric value, then the 'eval' function can
22 then be used to convert the string to a numeric value.
24 If a line is read, is returned minus the trailing newline, otherwise
25 (EOF or ERROR) nil is returned.
28 > fd = fopen("/tmp/newfile", "w")
29 > fputs(fd, "chongo was here\n")
31 > fd2 = fopen("/tmp/newfile", "r")
37 > fd2 = fopen("/tmp/newfile", "r")
44 fd must be associated with an open file
50 errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
51 fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt