📂 golxzn::os::filesystem 📂 1.6.5
golxzn filesystem submodule
Loading...
Searching...
No Matches
Writing files

Functions

static error golxzn::os::filesystem::write_binary (const std::wstring_view path, const details::data_view< byte > &data)
 Write binary data to a file.
 
static error golxzn::os::filesystem::write_binary (const std::wstring_view path, const std::initializer_list< byte > data)
 Write binary data to a file.
 
static error golxzn::os::filesystem::append_binary (const std::wstring_view path, const details::data_view< byte > &data)
 Append binary data to a file.
 
static error golxzn::os::filesystem::append_binary (const std::wstring_view path, const std::initializer_list< byte > data)
 Append binary data to a file.
 
static error golxzn::os::filesystem::write_text (const std::wstring_view path, const std::string_view text)
 Write text data to a file.
 
static error golxzn::os::filesystem::append_text (const std::wstring_view path, const std::string_view text)
 Append text data to a file.
 
static error golxzn::os::filesystem::write_text (const std::wstring_view path, const std::wstring_view text)
 Write text data to a file.
 
static error golxzn::os::filesystem::append_text (const std::wstring_view path, const std::wstring_view text)
 Append text data to a file.
 

Detailed Description

Function Documentation

◆ append_binary() [1/2]

static error golxzn::os::filesystem::append_binary ( const std::wstring_view  path,
const details::data_view< byte > &  data 
)
static

Append binary data to a file.

Parameters
pathPath to the file
dataData to write to the file
Returns
golxzn::os::filesystem::error - The error message or an empty string if there's no error

◆ append_binary() [2/2]

static error golxzn::os::filesystem::append_binary ( const std::wstring_view  path,
const std::initializer_list< byte >  data 
)
static

Append binary data to a file.

Parameters
pathPath to the file
dataData to write to the file
Returns
golxzn::os::filesystem::error - The error message or an empty string if there's no error

◆ append_text() [1/2]

static error golxzn::os::filesystem::append_text ( const std::wstring_view  path,
const std::string_view  text 
)
static

Append text data to a file.

Parameters
pathPath to the file
textText to write to the file
Returns
golxzn::os::filesystem::error - The error message or an empty string if there's no error

◆ append_text() [2/2]

static error golxzn::os::filesystem::append_text ( const std::wstring_view  path,
const std::wstring_view  text 
)
static

Append text data to a file.

Parameters
pathPath to the file
textText to write to the file
Returns
golxzn::os::filesystem::error - The error message or an empty string if there's no error

◆ write_binary() [1/2]

static error golxzn::os::filesystem::write_binary ( const std::wstring_view  path,
const details::data_view< byte > &  data 
)
static

Write binary data to a file.

Parameters
pathPath to the file
dataData to write to the file
Returns
golxzn::os::filesystem::error - The error message or an empty string if there's no error

◆ write_binary() [2/2]

static error golxzn::os::filesystem::write_binary ( const std::wstring_view  path,
const std::initializer_list< byte >  data 
)
static

Write binary data to a file.

Parameters
pathPath to the file
dataData to write to the file
Returns
golxzn::os::filesystem::error - The error message or an empty string if there's no error

◆ write_text() [1/2]

static error golxzn::os::filesystem::write_text ( const std::wstring_view  path,
const std::string_view  text 
)
static

Write text data to a file.

Parameters
pathPath to the file
textText to write to the file
Returns
golxzn::os::filesystem::error - The error message or an empty string if there's no error

◆ write_text() [2/2]

static error golxzn::os::filesystem::write_text ( const std::wstring_view  path,
const std::wstring_view  text 
)
static

Write text data to a file.

Parameters
pathPath to the file
textText to write to the file
Returns
golxzn::os::filesystem::error - The error message or an empty string if there's no error