Path: /sdk/add_on/scriptfile/
This object provides support for reading and writing files.
Register with RegisterScriptFile(asIScriptEngine*)
.
If you do not want to provide write access for scripts then you can compile the add on with the define AS_WRITE_OPS 0, which will disable support for writing. This define can be made in the project settings or directly in the header.
Public C++ interface
class CScriptFile
{
public:
CScriptFile();
void AddRef() const;
void Release() const;
int Open(const std::string &filename, const std::string &mode);
int Close();
int GetSize() const;
bool IsEOF() const;
std::string ReadString(unsigned int length);
std::string ReadLine();
float ReadFloat();
double ReadDouble();
int WriteString(const std::string &str);
int WriteFloat(float v);
int WriteDouble(double v);
int GetPos() const;
int SetPos(int pos);
int MovePos(int delta);
bool mostSignificantByteFirst;
};
unsigned __int64 asQWORD
64 bit unsigned integer
Definition: angelscript.h:146
__int64 asINT64
64 bit integer
Definition: angelscript.h:147
unsigned int asUINT
32 bit unsigned integer
Definition: angelscript.h:127
Public script interface
- See also
- file