Changes

Jump to navigation Jump to search
287 bytes added ,  08:31, 11 September 2016
no edit summary
Line 179: Line 179:  
; length : The length, in bytes, of the file denoted by this object, or 0L if the file does not exist.  
 
; 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.
 
; getLineNumber : Get the current line number.
 +
 +
===Примеры===
 +
====Запись и чтение из файла====
 +
<source lang="javascript" line>
 +
f= file("/sdcard/myfile.txt")
 +
file.writeLine("one");                     
 +
file.writeLine("two");
 +
file.writeLine("three");
 +
file.close();   
 +
var a = file.readLines();
 +
</source>
 +
    
==Выполнение http запросов==
 
==Выполнение http запросов==

Navigation menu