Tao.PhysFs SDK Documentation |
|
Fs.PHYSFS_openWrite Method
Open a file for writing.
[Visual Basic]
Public Shared Function PHYSFS_openWrite( _
ByVal
filename As
String _
) As
IntPtr
[C#]
public static
IntPtr PHYSFS_openWrite(
string filename);
Parameters
-
filename
- File to open.
Return Value
A valid PhysicsFS filehandle on success, NULL on error. Specifics of the error can be gleaned from PHYSFS_getLastError.
Remarks
Open a file for writing, in platform-independent notation and in relation to the write dir as the root of the writable filesystem. The specified file is created if it doesn't exist. If it does exist, it is truncated to zero bytes, and the writing offset is set to the start.
Note that entries that are symlinks are ignored if PHYSFS_permitSymbolicLinks(1) hasn't been called, and opening a symlink with this function will fail in such a case.
See Also
Fs Class | Tao.PhysFs Namespace | PHYSFS_openRead | PHYSFS_openAppend | PHYSFS_write | PHYSFS_close