Utility class to read / write binary files.
More...
#include <murl_util_file_tools.h>
Utility class to read / write binary files.
◆ LoadBinaryFile()
static Bool Murl::Util::FileTools::LoadBinaryFile |
( |
const String & |
name, |
|
|
Data & |
data, |
|
|
UInt64 |
byteSize = 0 |
|
) |
| |
|
static |
Load a binary file.
- Parameters
-
name | The file name. |
data | The data object to read the file into. |
byteSize | The maximum number of bytes to read, if zero the entire file is loaded. |
- Returns
- true if successful.
◆ SaveBinaryFile() [1/2]
static Bool Murl::Util::FileTools::SaveBinaryFile |
( |
const String & |
name, |
|
|
const ConstData & |
data |
|
) |
| |
|
static |
Save data to a binary file.
- Parameters
-
name | The file name. |
data | The data object to write into the file. |
- Returns
- true if successful.
◆ SaveBinaryFile() [2/2]
static Bool Murl::Util::FileTools::SaveBinaryFile |
( |
const String & |
name, |
|
|
const String & |
string |
|
) |
| |
|
static |
Save a string to a binary file.
- Parameters
-
name | The file name. |
string | The string to write into the file. |
- Returns
- true if successful.
◆ FolderExists()
static Bool Murl::Util::FileTools::FolderExists |
( |
const String & |
path, |
|
|
Bool |
create |
|
) |
| |
|
static |
Check if a folder exists.
- Parameters
-
path | The path and the folder. |
create | If the folder does not exist, create the folder if true. |
- Returns
- true if the folder exists.
The documentation for this class was generated from the following file: