next up previous contents index
Next: String Input Streams ( Up: Simple Data Types and Previous: File Input Streams (

     
File Output Streams ( file_ostream )

Definition

An instance O of the data type file$ \_$ostream is an C++ostream connected to a file F, i.e., all output operations or operators applied to O write to F.

#include < LEDA/stream.h >

Creation

file_ostream O(string s) creates an instance O of type file_ostream connected to file s.

Operations

All operations and operators (< <) defined for C++ostreams can be applied to file output streams as well.



LEDA research project
1999-04-23