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

   
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.

Creation

file_ostream O(char* 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
1998-10-02