file
File Methods
info()
Returns a struct of file information.
Different values are returned for FileInfo and GetFileInfo
seek(position=[integer])
Moves the buffer cursor position forward the number of characters specified by the position argument
Arguments:
Argument
Type
Required
Default
position
integer
true
null
setAccessMode(mode=[string])
Sets the Posix permissions on a file
Arguments:
Argument
Type
Required
Default
mode
string
true
null
setAttribute(attribute=[string])
Sets a file access attribute
Arguments:
Argument
Type
Required
Default
attribute
string
true
null
setLastModified(date=[any])
Sets the last modified time of a file
Arguments:
Argument
Type
Required
Default
date
any
true
null
skipBytes(position=[integer])
Moves the buffer cursor position forward the number of characters specified by the position argument
Arguments:
Argument
Type
Required
Default
position
integer
true
null
writeLine(data=[string])
Writes a line of data to a file
Arguments:
Argument
Type
Required
Default
data
string
true
null
Examples
Last updated
Was this helpful?