User Tools

Site Tools


built_in:read_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:read_file [2015/10/14 23:47]
49.227.173.17 [Options]
built_in:read_file [2015/10/15 07:54]
Line 1: Line 1:
-=====ReadFile===== 
  
-//(Information and examples taken from the DroidScript documentation)// 
- 
-====Description==== 
- 
-The **ReadFile** method reads a text file from internal or external file storage. 
- 
-<code> txt = app.ReadFile( fileName, encoding );</code> 
- 
-See also [[built_in:write_file|WriteFile]] 
- 
----- 
- 
-====Example==== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-  txt = app.ReadFile( "/Sys/Html/Page.htm" ); 
-  app.ShowPopup( txt ); 
- 
- 
-</code> 
- 
-====Options==== 
- 
-^ Encoding-options  ^ 
-| windows-1252      | 
-| ISO-8859-1 | 
-| US-ASCII | 
-| UTF-16 | 
-| UTF-16BE | 
-| UTF-16LE | 
-| UTF-8 | 
- 
-Information from:  
built_in/read_file.txt ยท Last modified: 2015/10/15 07:54 (external edit)