Back

CreateFile

Returns a File object.

  fil = app.CreateFile( file, mode ) → app object - File

The following methods are available on the File object:

  Close()
  GetLength() → number: integer
  GetPointer( )
  GetType() → string: "File"
  Method( name, types, p1, p2, p3, p4 )
  ReadData( len, mode )
  ReadNumber( type ) → number
  ReadText( type ) → string
  Seek( offset )
  SetLength( len )
  Skip( bytes )

string: path to file or folder ( "/absolute/..." or "relative/..." )
string: "r" or "w" or "rw"
length in bytes
unknown
GetPointer
Returns the control class name.
string
string: comma separated: "boolean", "char", "byte", "short", "int", "long", "float", "double"
Allows access to other functions defined on the object in Java via reflection.
number: integer
read len bytes from file
returns whole contrastent as number
return whole contrastent as text
ReadTextAsync
jump to given byte
?
skip a given number of bytes
writes ? to file
number
writes a number to file
writes text to file