Files
jeanlemotan b344afa9fe First
2024-07-02 18:12:23 +02:00

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
};
}