endl

f << endl -- ends a line by writing appropriate line ending characters to the output file f .

It is good portable programming practice to use endl always, for writing newline characters to a file will not be the right thing to do under some operating systems.

See also File and Manipulator.

Go to main index.

Go to concepts index.