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

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

   class ofstream : public fstream_common, public ostream {
   public:
       ofstream();
       ofstream(const char *name, int io_mode = ios::out,
   int protection = filebuf::openprot);
       ofstream(int file_descriptor);
       ofstream(int file_descriptor, char *memory, int length);
       ~ofstream();
       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
   ofstream.




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