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

   Class fstream provides the capability to use both the istream and ostream
   paradigms on the same file. Objects of type fstream have the public
   interface of classes ios, istream and ostream, and their own public
   interface is as follows:

   class fstream : public fstream_common, public iostream {
   public:
       fstream();
       fstream(const char *name, int io_mode = ios::in|ios::out,
                       int protection = filebuf::openprot);
       fstream(int file_descriptor);
       fstream(int file_descriptor, char *memory, int length);
       ~fstream();
       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 descriptions of the ifstream functions apply equally to class
   fstream.




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