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

get -- get the contents of a file

Description

i1 : "test-file" << "hi there" << close

o1 = test-file

o1 : File
i2 : get "test-file"

o2 = hi there
i3 : removeFile "test-file"
i4 : get "!date"

o4 = Thu May 15 13:42:27 UTC 2025

See also

Ways to use get:

  • get(File)
  • get(String)

For the programmer

The object get is a compiled function.


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