Returns a string of the characters up to, but not including a newline or end of file, updating port to point to the character following the newline. If no characters are available, an end of file object is returned. The port argument may be omitted, in which case it defaults to the value returned by
current-input-port.
Fills string with characters up to, but not including a newline or end of file, updating the port to point to the last character read or following the newline if it was read. If no characters are available, an end of file object is returned. If a newline or end of file was found, the number of characters read is returned. Otherwise,
#fis returned. The port argument may be omitted, in which case it defaults to the value returned bycurrent-input-port.
Writes string followed by a newline to the given port and returns an unspecified value. The Port argument may be omitted, in which case it defaults to the value returned by
current-input-port.
command must be a string. The string tmp, if supplied, is a path to use as a temporary file.
system->linecallssystemwith command as argument, redirecting stdout to file tmp.system->linereturns a string containing the first line of output from tmp.
system->lineis intended to be a portable method for getting one-line results from programs likepwd,whoami,hostname,which,identify, andcksum. Its behavior when called with programs which generate lots of output is unspecified.