nn::fs::TryCreateFile FunctionResult TryCreateFile( const char * 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 returns any error that occurs while it is creating the file.
Note: This function uses a large amount of buffer space on the stack because it converts the path name from a multibyte string into a wide string. Pay careful attention to the stack size.
If file creation fails, a garbage file may have been created. Call the TryDeleteFile function to delete it. If a garbage file has not been created, ResultNotFound is returned.
Result values need handling will differ, depending on the archive. For details, see Handling Errors During File and Directory Operations.nn::fs::ResultVerificationFailed.CONFIDENTIAL