DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:delete_file

Differences

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

Link to this comparison view

built_in:delete_file [2015/03/04 16:17] (current)
octazid created
Line 1: Line 1:
 +=====DeleteFile=====
 +
 +//​(Information and examples taken from the DroidScript documentation)//​
 +
 +====Description====
 +
 +The **DeleteFile** method delete a file from internal or exernal file storage. ​
 +
 +<​code>​ app.DeleteFile( fileName );</​code>​
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  app.WriteFile( "/​sdcard/​wftest.txt",​ "​Hello"​ );
 +  app.DeleteFile( "/​sdcard/​wftest.txt"​ );
 +
 +
 +</​code>​
 +
 +
 +
 +
 +
 +
 +
 +
  
built_in/delete_file.txt ยท Last modified: 2015/03/04 16:17 by octazid