Tao.PhysFs SDK Documentation |
|
Fs.PHYSFS_openRead Method
Open a file for reading.
[Visual Basic]
Public Shared Function PHYSFS_openRead( _
ByVal
filename As
String _
) As
IntPtr
[C#]
public static
IntPtr PHYSFS_openRead(
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 reading, in platform-independent notation. The search path is checked one at a time until a matching file is found, in which case an abstract filehandle is associated with it, and reading may be done. The reading offset is set to the first byte of the file.
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_openWrite | PHYSFS_openAppend | PHYSFS_read | PHYSFS_close