file

File Methods

close()

Closes either the read or write stream

getLastModifedTime()

Retrieves the last modified time of a file

info()

Returns a struct of file information.

Different values are returned for FileInfo and GetFileInfo

readLine()

Returns the next line from the file object stream

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?