Triggers: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 159: Line 159:


===Объект File===
===Объект File===
Данный объект возвращается функцией file() и предоставляет доступ к запрошенному файлу.  Если файл с указанным в функции file() именем ещё не существует, то но будет создан.
Данный объект возвращается функцией file() и предоставляет доступ к запрошенному файлу.  Если файл с указанным в функции file() именем ещё не существует, то но будет создан. После операций чтения или записи файл должен быть закрыть функцией close().
====Методы====
====Методы====
=====readAll()=====
:Reads all lines of the file, and then closes the file.
=====readLine()=====
:Read a line.
=====readLines()=====
:Read the remaining lines in the file and return them in an array.
=====readChar()=====
:Read a character.
=====write(text)=====
:Write strings. This function takes a variable number of arguments, converts each argument to a string, and writes that string to the file.
=====writeLine(text)=====
:Write strings and a newline.
=====close()=====
:Close the file. It may be reopened.
====Свойства====
====Свойства====
; exists : true - if and only if the file denoted by this object exists; false otherwise
; length : The length, in bytes, of the file denoted by this object, or 0L if the file does not exist.
; getLineNumber : Get the current line number.


==Выполнение http запросов==
==Выполнение http запросов==