User Tools

Site Tools


built_in:write_file

Differences

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

Link to this comparison view

built_in:write_file [2015/03/04 17:25]
octazid [Description]
built_in:write_file [2015/04/18 17:50]
Line 1: Line 1:
-=====WriteFile===== 
- 
-//(Information and examples taken from the DroidScript documentation)// 
- 
-====Description==== 
- 
-The **WriteFile** method writes a text file to internal or exernal file storage. 
- 
-Use the option **"Append"** to append text to the file and the option **"Ascii"** can be used to write plain ascii files if required (the default is Unicode). 
- 
-<code> app.WriteFile( fileName, text, mode );</code> 
- 
-See also [[built_in:read_file|ReadFile]] 
- 
----- 
- 
-====Example==== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-  app.WriteFile( "/sdcard/wftest.txt", "Hello", "Append" ); 
- 
- 
-</code> 
  
built_in/write_file.txt ยท Last modified: 2015/04/18 17:50 (external edit)