Class: File
Prev
Next

Class: File

An object that represents a file.

Constructors:

Methods:

Properties:

File ( string name )

  • string name - Name of the file to be opened.

Constructs a file with the given name.

void open ( )

Opens the file.

void close ( )

Closes the file.

string readLine ( [number length] )

  • number length - Maximum length of string to return [OPTIONAL]

Reads a line from the file.

string name

The name of the file.

number size

The size of the file.

boolean exists

True if the underlying file exists.

Prev
Next
Home


Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team