Torque3D Documentation / _generateds / Torque::FS::File

Torque::FS::File

Engine/source/core/volume.h

File object in a FileSystem.

More...

Public Types

enum
AccessMode {
  Read = 0
  Write = 1
  ReadWrite = 2
  WriteAppend = 3
}
enum
SeekMode {
  Begin 
  Current 
  End 
}

Public Functions

File()
bool
bool
read(void * dst, U32 size)
write(const void * src, U32 size)

Detailed Description

File object in a FileSystem.

File object in a FileSystem. When a file is initially obtained from a FileSystem it is in a closed state.

Public Types

AccessMode

Enumerator

Read = 0

Open for read only.

Write = 1

Open for write only.

ReadWrite = 2

Open for read-write.

WriteAppend = 3

Write-only, starting at end of file.

SeekMode

Enumerator

Begin

Relative to the start of the file.

Current

Relative to the current position.

End

Relative to the end of the file.