4D v19

file.isWritable

Home

 
4D v19
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

 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)