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

endl -- end an output line

Description

f << endl -- ends the line currently being put out to the file f.

It is an essential portable programming practice to use endl always, for writing newline characters (see newline) to a file will not terminate a line containing nets properly, and it will not flush the output buffer.

Ways to use endl:

  • Manipulator Database -- see Manipulator -- the class of all file manipulators
  • Manipulator File -- see Manipulator -- the class of all file manipulators
  • Manipulator Nothing -- see Manipulator -- the class of all file manipulators
  • new Manipulator from Function -- see Manipulator -- the class of all file manipulators
  • methods(Manipulator) -- see methods -- list methods
  • Manipulator NetFile -- see NetFile -- the class of all net files
  • NetFile << Manipulator -- see NetFile -- the class of all net files
  • File << Manipulator -- see printing to a file -- print to a file
  • Nothing << Manipulator -- see printing to a file -- print to a file

For the programmer

The object endl is a manipulator.


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