nn::fs::CreateFile Function
void CreateFile(
const wchar_t * pathName,
s64 size
);
| Name | Description | |
|---|---|---|
| in | pathName | Path of the file to create. |
| in | size | Size of the file to create. |
Creates a file.
This function is implemented to show an error screen when errors occur internally, whether or not such errors are fatal. Control does not return from the function in this case. Use nn::fs::TryCreateFile on everything other than ROM archives.
To read details about error handling, see Handling Errors During File and Directory Operations.
After the size has been extended with this function, if nothing has been written to that region, then in principle the process of reading that region will return nn::fs::ResultVerificationFailed.
CONFIDENTIAL