Murl::Util::FileTools Class Reference
Utility class to read / write binary files. More...
#include "murl_util_file_tools.h"
Static Public Member Functions | |
static Bool | LoadBinaryFile (const String &name, Data &data, UInt64 byteSize=0) |
Load a binary file. More... | |
static Bool | SaveBinaryFile (const String &name, const ConstData &data) |
Save data to a binary file. More... | |
static Bool | SaveBinaryFile (const String &name, const String &string) |
Save a string to a binary file. More... | |
static Bool | FolderExists (const String &path, Bool create) |
Check if a folder exists. More... | |
Detailed Description
Utility class to read / write binary files.
Member Function Documentation
◆ LoadBinaryFile()
|
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 |
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 |
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()
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:
- murl_util_file_tools.h