I'm trying to figure out how to read a line from a file with guile scheme.
When I ask it to "read port" or "read-char port", it successfully reads.
guile -c '(let ((port (open-input-file "foo.txt"))) (display (read port)) (newline) (close-port port))'
But, when I ask it to read-line, it fails.
guile -c '(let ((port (open-input-file "foo.txt"))) (display (read-line port)) (newline) (close-port port))'
Does anyone know what I am doing wrong? I am currently in the directory where foo.txt is located.