![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
Utility class implementing the IFile interface.
Constructor taking the file name and access mode.
Murl.Util.File new(String name, Murl.IEnums.FileAccessMode accessMode)
name | The file name. |
accessMode | The access mode for opening the file. |
Implementation of IFile::GetPosition().
Integer GetPosition()
Implementation of IFile::SetPosition().
SetPosition(Integer position)
position | The position of the file pointer in bytes. |
Implementation of IFile::GetSize().
Integer GetSize()
Implementation of IFile::Read(Data& data).
Integer, Murl.Data Read(Murl.Data data)
data | The data object to read the file into. |
Implementation of IFile::Write(const ConstData& data).
Integer Write(Murl.ConstData data)
data | The data object to write into the file. |
Open the file. Open with the name and access mode specified by the constructor.
Boolean Open()
Close the file.
Boolean Close()