file object

Path: /sdk/add_on/scriptfile/

This is currently only a basic foundation for a file object that will allow scripts to read and write files.

Register with RegisterScriptFile(asIScriptEngine*).

Script example:

  file f;
  // Open the file in 'read' mode
  if( f.open("file.txt", "r") >= 0 ) 
  {
      // Read the whole file into the string buffer
      string @str = @f.readString(f.getSize()); 
      f.close();
  }

Generated on Sun Oct 5 10:14:48 2008 for AngelScript by  doxygen 1.5.6