This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19 R4
file.isWritable

file.isWritable 


 

   
Parameter Type   Description
file.isWritable   Boolean in True if the file exists on disk and is writable, false otherwise

The file.isWritable property returns true if the file exists on disk and is writable. 

Note: The property checks the ability of the 4D application to write on the disk (access rights), it does not solely rely on the writable attribute of the file. 

This property is read-only.

Example  

 $myFile:=File("C:\\Documents\\Archives\\ReadMe.txt";fk platform path)
 If($myFile.isWritable)
    $myNewFile:=$myFile.setText("Added text")
 End if

 
PROPERTIES 

Product: 4D
Theme: File and Folder

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v18)
4D Language Reference ( 4D v18.4)
4D Language Reference ( 4D v18.6)
4D Language Reference ( 4D v19 R4)