panthema / 2006 / SDIOS06 / sdios06 / include / libstdc++ / fstream (Download File)
#ifndef FSTREAM_
#define FSTREAM_

#include "iostream"

namespace std {

	class ofstream : public ostream
	{
	public:	
		ofstream(const char* fname)
			: ostream(new fstreambuf(fopen(fname, "w")))
		{
		}
		
		~ofstream()
		{
			delete rdbuf();	
		}
	};
	
}

#endif /*FSTREAM_*/
RSS 2.0 Weblog Feed Atom 1.0 Weblog Feed Valid XHTML 1.1 Valid CSS (2.1)
Copyright 2005-2014 Timo Bingmann - Impressum