Synopsis:
"name" << x -- prints the expression x on the output file named "name".
Returns the newly created File associated to the given name. Parsing associates leftward, so that several expressions may be displayed with something like "name"<<x<<y<<z. It will often be convenient to let the last output operation close the file, as illustrated below.
i1 : "foo" << 2^30 << endl << close |
i2 : get "foo" |
Code:
-- ../../../Macaulay2/m2/files.m2:4 String << Thing := File => (filename,x) -> openOut filename << x