17 lines
462 B
C++
17 lines
462 B
C++
#pragma once
|
|
|
|
namespace fs
|
|
{
|
|
|
|
enum class Mode
|
|
{
|
|
CreateOrOpen, //Create if doesn't exist, or open otherwise, but DON'T clear the file
|
|
CreateOrOpenAndClear, //Create if doesn't exist, or open otherwise, and clear the file
|
|
CreateIfNew, //Create the file ONLY if it doesn't exist already. Otherwise FAIL
|
|
|
|
Open, //Open if exists, fail otherwise, but DON'T clear the file
|
|
OpenAndClear //Open the file if exists, fail otherwise, and clear the file
|
|
};
|
|
|
|
}
|