Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 171: | Line 171: | ||
==== ''File'' Methods ==== | ==== ''File'' Methods ==== | ||
; readAll() | :; readAll(): Reads all lines of the file, and then closes the file | ||
: Reads all lines of the file, and then closes the file | ::; Returns: Array containing the lines of the file | ||
:; Returns | |||
; readLine() | :; readLine(): Reads the next line from the file stream | ||
: Reads the next line from the file stream | ::; Returns: The line | ||
:; Returns: The line | |||
; readLines() | :; readLines(): Reads the remaining lines from the file stream | ||
: Reads the remaining lines from the file stream | ::; Returns: Array containing the remaining lines of the file | ||
:; Returns: Array containing the remaining lines of the file | |||
; readChar() | :; readChar(): Reads the next character from the file stream | ||
: Reads the next character from the file stream | ::; Returns: The character | ||
:; Returns: The character | |||
; write(text) | :; write(text): Write string(s). Take a variable number of arguments, converts each argument to a string, and writes that string to the file stream. | ||
: Write string(s). Take a variable number of arguments, converts each argument to a string, and writes that string to the file stream. | |||
; writeLine(text) | :; writeLine(text): Write strings and a newline to the file stream | ||
: Write strings and a newline to the file stream | |||
; close() | :; close(): Close the file. It can subsequently be reopened. | ||
: Close the file. It can subsequently be reopened. | |||
==== ''File'' Properties ==== | ==== ''File'' Properties ==== |