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 = Fri May 16 00:42:44 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 /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_system.m2:340:0.