DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:file_exists

Differences

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

Link to this comparison view

built_in:file_exists [2015/03/04 16:20] (current)
octazid created
Line 1: Line 1:
 +=====FileExists=====
 +
 +//​(Information and examples taken from the DroidScript documentation)//​
 +
 +====Description====
 +
 +The **FileExists** method checks if a file exists in internal or exernal file storage.
 +
 +<​code>​ exists = app.FileExists( fileName );</​code>​
 +
 +See also [[built_in:​folder_exists|FolderExists]]
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  exists = app.FileExists( "/​sdcard/​wftest.txt"​ );
 +  app.ShowPopup( exists );
 +
 +
 +</​code>​
  
built_in/file_exists.txt ยท Last modified: 2015/03/04 16:20 by octazid