get "f" -- yields a string containing the contents of the file whose name is f.
get "!f" -- yields a string containing the output from the shell command "f".
get "$hostname:service" -- yields a string containing the input from the socket obtained by connecting to the specified host at the port appropriate for the specified service. Warning: if the process providing the service expects interaction, it will not get it, and this command will hang. This feature is not available on Sun computers, because Sun doesn't provide static versions of crucial libraries dealing with network communications.
get f -- yields a string containing the rest of the input from the file f, closing the file.
i1 : "junk" << "hi there" << close |
i2 : get "junk" |
See also:
Ways to use get :