xtd 0.2.0
Loading...
Searching...
No Matches

◆ create()

static std::ofstream xtd::io::file::create ( const xtd::string path)
static

Creates or overwrites a file in the specified path.

Parameters
Thepath and name of the file to create.
Returns
A std::ofstream that provides read/write access to the file specified in path.
Exceptions
xtd::argument_exceptionpath contains one or more of the invalid characters
-or-
The system could not retrieve the absolute path
-or-
file dest exists.
xtd::io::io_exceptionthe handle of the specified file cannot be created.