Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » using sockets » openInOut
next | previous | forward | backward | up | index | toc

openInOut -- open an input output file

Description

There are various options for the argument f.

In order to open a socket successfully, there must be a process accepting connections for the desired service on the specified host.

The various forms listed above can be used also with all other input output operations that open files, such as openIn, openOut, get, and <<, with data transfer possible only in the direction specified. A possibly confusing asymmetry is that with openIn "!foo" or with get "!foo" the standard input of the command foo is closed, but with openOut "!foo" the standard output of the command foo is connected to the standard output of the parent Macaulay2 process.

See also

Ways to use openInOut:

  • openInOut(File)
  • openInOut(String)

For the programmer

The object openInOut is a compiled function.


The source of this document is in Macaulay2Doc/ov_system.m2:537:0.