ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Properties specific to DiskFile variables
  • Functions that use the DiskFile type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
DiskFile (Type of variable)
In french: FichierDisque
The DiskFile type is used to handle text files present on disk. You can define and change the characteristics of this file using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Writing into a text file
MyFile is DiskFile = fOpen("File.txt")
MyFile.Write("Report")
Properties

Properties specific to DiskFile variables

The following properties can be used to handle text files:
Property nameType usedEffect
DateCreatedDateTimeDate and time the file was created.
LinuxiPhone/iPadIOS WidgetMac Catalyst
This property is read-only.
AndroidAndroid Widget Java This property is available from Android 8 only. In previous versions, this property returns an empty string.
DateLastAccessedDateTimeDate and time the file was last accessed.
AndroidAndroid Widget Java This property is available from Android 8 only. In previous versions, this property returns an empty string in read mode, and has no effect in write mode.
DateModifiedDateTimeDate and time the file was last modified.
AndroidAndroid Widget Java This property is available from Android 8 only. In previous versions, this property returns an empty string in read mode, and has no effect in write mode.
HandleSystem integer
  • File system handle,
  • -1 if no associated file.
This property is read-only.
AndroidAndroid Widget Java This property is not available.

Remark: The file associated with a DiskFile variable is automatically closed outside of the scope of the variable.
AndroidAndroid Widget Java The file associated with a FileDisk variable is automatically closed when the Android system determines the last variable pointing to the file can be released.
Remarks

Functions that use the DiskFile type

Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/21/2023

Send a report | Local help