[top][index]
search for:

get -- get an entire file

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

o1 = junk

o1 : File
i2 : get "junk"

o2 = hi there

See also:

  • File -- the class of all files
  • read -- read from a file
  • Ways to use get :

  • get File
  • get String

  • [top][index]
    search for: