I have somewhat of a weird problem which probably is caused by my compiler, but when I include <fstream> some of it's members cannot be found back in the std namespace.
When i use <fstream.h> these methods are availabe.

The methods are ios::nocreate and ios::noreplace, anyone who has had the same problem.
(I'm using MSVC++)

I thought of doing such a thing, now that i've tried a few forums it seems the basic solution is indeed to write the functions yourself. Anyways thanks for the examples ;-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.