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 Bool Murl::Util::FileTools::LoadBinaryFile ( const String name,
Data data,
UInt64  byteSize = 0 
)
static

Load a binary file.

Parameters
nameThe file name.
dataThe data object to read the file into.
byteSizeThe 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
nameThe file name.
dataThe 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
nameThe file name.
stringThe 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
pathThe path and the folder.
createIf 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


Copyright © 2011-2024 Spraylight GmbH.