TSfgets(3) reads a line from the file pointed to by filep into the buffer buf