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>file based input streams - class ifstream</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
File Based Input Streams - Class ifstream

   Input streams specialized on files are provided for by class ifstream.
   Objects of type ifstream have the public interface of classes ios and
   istream, and their own public interface is as follows:

   class ifstream : public fstream_common, public istream {
   public:
       ifstream();
       ifstream(const char *name, int io_mode = ios::in,
                    int protection = filebuf::openprot);
       ifstream(int file_descriptor);
       ifstream(int file_descriptor, char *memory, int length);

       ~ifstream();

       void attach(int file_descriptor);
       void open(const char *name, int io_mode = ios::in,
                     int protection = filebuf::openprot);
       void close();
       filebuf *rdbuf() const;
   };

   The following functions require the inclusion of file fstream.hpp.





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