file_not_found(const std::string &fn): std::runtime_error(fn) { }
};
+class file_already_exists: public std::runtime_error
+{
+public:
+ file_already_exists(const std::string &fn): std::runtime_error(fn) { }
+};
+
/**
A class for reading and writing files.
{
C_NONE = 0,
C_CREATE = 1,
- C_TRUNCATE = 2
+ C_TRUNCATE = 2,
+ C_EXCLUSIVE = 4
};
private: