Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>ifstream::open</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ifstream::open

Usage

   #include <fstream.hpp>
   void open(const char *name, int io_mode = ios::in,
               int protection = filebuf::openprot);

Description

   Opens the specified file and attaches it to the ifstream. The default
   open mode and protection may be overriden.

   Failure to open the specified file will result in the error state being
   set to (ios::failbit|ios::badbit). The open function will also fail if
   the stream is already attached to a file, in this case, the error state
   will be set to (rdstate()|ios::failbit).

Example 

   ifstream ifs;
   ifs.open("input.dat");

Return Value

   None.






Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson