next up previous contents
Next: File Output Streams (file_ostream) Up: Simple Data Types and Previous: Dates (date)

   
File Input Streams (file_istream)

Definition

An instanc I of the data type file_istream is an C++istream connected to a file F, i.e., all input operations or operators applied to I read from F.

Creation

file_istream I(string s); creates an instance I of type file_istream connected to file s.

   

Operations

All operations and operators (>>) defined for C++istreams can be applied to file input streams as well.



LEDA research project
1998-10-02