ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Version: 2025

Category: External file functions
172 results
<DiskFile variable>.ChangeSize (Function)
Resizes an external file.
<DiskFile variable>.Close (Function)
Closes an external file.
<DiskFile variable>.Create (Function)
Creates an external file.
<DiskFile variable>.FileName (Function)
Returns the name of an external file currently open.
<DiskFile variable>.Find (Function)
Finds a character string or a buffer in a file opened by fOpen.
<DiskFile variable>.Lock (Function)
Entirely or partially locks an external file.
<DiskFile variable>.Open (Function)
Opens an external file (ANSI or Unicode) so that it can be manipulated programmatically
<DiskFile variable>.OpenTempFile (Function)
Creates and opens a temporary file.
<DiskFile variable>.Read (Function)
Reads:
  • a block of bytes (characters) in an external file (ANSI or Unicode),
  • the content of an external file (ANSI or Unicode) and assigns it to a memory area.
<DiskFile variable>.ReadLine (Function)
Reads a line from an external file (ANSI or Unicode).
<DiskFile variable>.ReadLineRegularExpression (Function)
Reads a line in an external file, gets sections of this line according to a regular expression and assigns them to a variable.
<DiskFile variable>.Seek (Function)
Gets and sets current position in an external file.
<DiskFile variable>.Size (Function)
Returns the size of a file (in bytes).
<DiskFile variable>.Unlock (Function)
Entirely or partially unlocks an external file.
<DiskFile variable>.Write (Function)
Writes:
  • a character string to an external file.
  • a memory section.
<DiskFile variable>.WriteLine (Function)
Writes a line to a text file (ANSI or Unicode).
Constants for external files
List of constants used by the functions for managing external files.
DiskFile (Type of variable)
The DiskFile type is used to handle text files present on disk.
fAddBuffer (Function)
Adds the content of a buffer at the end of a file.
fAddText (Function)
Adds the content of a character string at the end of a file.
fAttribute (Example)
Usage example of the fAttribute function
fAttribute (Function)
Returns or modifies the attributes of a file.
fAttributeReadOnly (Function)
Gets and sets the read-only attribute of a file.
fBuildPath (Function)
Builds a complete file path from the directory and short name of a file. This function is mainly used to get a valid file name without having to worry about the presence of separators in the path ('/' or '\') or about their direction according to the platform.
fBuildRelativePath (Function)
Returns the path to a file relative to a reference directory.
fCacheDir (Function)
Returns the path of directory that will be used to store the data in cache on the internal storage space of application.
fChangeExtension (Function)
Changes the extension of a file on disk.
fChangeSize (Function)
Resizes an external file.
fClose (Example)
Usage example of the fClose function
fClose (Function)
Closes an external file.
fCompare (Example)
Usage example of the fCompare function
fCompare (Function)
Compares the content of two files bit by bit.
fCompress (Example)
Usage example of the fCompress function
fCompress (Function)
Compresses a file.
fContentType (Function)
Returns the type of file according to the MIME standard (Multipurpose Internet Mail Extensions).
fCopyDir (Example)
Usage example of the fCopyDir function
fCopyDir (Function)
Copies the contents of a directory and its subdirectories.
fCopyFile (Example)
Usage example of the fCopyFile function
fCopyFile (Function)
Copies one or more files (regardless of their attributes).
fCopyFileWebFolder (Function)
Copies an image file from the data directory of application (or from one of its sub-directories) to the "_WEB" directory of application (or to one of its sub-directories).
fCreate (Example)
Usage example of the fCreate function
fCreate (Function)
Creates an external file.
fCreateLink (Function)
Creates a link on a file at the specified location.
fCurrentDir (Example)
Usage example of the fCurrentDir function
fCurrentDir (Function)
Identifies or modifies the current directory.
fCurrentDrive (Example)
Usage example of the fCurrentDrive function
fCurrentDrive (Function)
Gets or sets the current drive.
fDataDir (Function)
Returns the full path of the directory of HFSQL data files specified by the user when installing the application.
fDataDirCommon (Function)
Returns a directory path for the data shared:
  • between all the users of the computer
  • between all the TSE users
This directory can be used without restriction in Windows XP, Vista, and so on. This directory is used to store: 
  • the files for the general configuration of the application (.INI files, .XML files, etc.).
  • data files common to all users (HFSQL data files .fic, .ndx, .mmo).
fDataDirUser (Function)
Returns a directory path for the data of the current user of the current application.
fDate (Example)
Usage example of the fDate function
fDate (Function)
Returns or modifies the different dates associated with a file or directory (date created, modified or accessed).
fDateTime (Example)
Usage example of the fDateTime function
fDateTime (Function)
Returns or modifies the different dates and times associated with a file or directory (date created, modified or accessed).
fDecrypt (Example)
Usage example of the fDecrypt function
fDecrypt (Function)
Decrypts a file that was encrypted by fCrypt.
fDelete (Example)
Usage example of the fDelete function
fDelete (Function)
Deletes a file accessible from the current computer.
fDeleteFileWebFolder (Function)
Deletes an image file from the "_WEB" directory of the application (or from one of its sub-directories).
fDetectRemovableStorage (Function)
Detects whether a removable storage unit (CD, USB key, USB camera, ...) was added or removed.
fDir (Example)
Usage example of the fDir function
fDir (Function)
Finds a file or directory.
fDirAttribute (Function)
Returns or modifies the attributes of a directory.
fDirectoryExist (Function)
Checks the existence of a directory.
fDirExist (Function)
Checks the existence of a directory.
fDirRename (Function)
Renames a directory.
fDirSize (Function)
Returns the size of a directory in bytes.
fDriveInfo (Example)
Usage example of the fDriveInfo function
fDriveInfo (Function)
Returns information about a drive.
fDriveReady (Example)
Usage example of the fDriveReady function
fDriveReady (Function)
Determines:
  • if a given drive (storage card, CD or DVD) is available,
  • whether the drive exists.
fEncrypt (Example)
Usage example of the fEncrypt function
fEncrypt (Function)
Encrypts a file in binary or ASCII format.
fExeDir (Function)
Returns the directory from which the execution is started.
fExtractPath (Example)
Usage example of the fExtractPath function
fExtractPath (Function)
Returns the different elements of a path: drive, directories, name and extension of the file.
fExtractResource (Function)
Extracts a resource from the application into a physical device location.
fFileExist (Function)
Checks the existence of an external file.
fFileName (Function)
Returns the name of an external file currently open.
fFind (Function)
Finds a character string or a buffer in a file opened by fOpen.
fGlobalDirCommon (Function)
Returns a directory path for the global data of current application (data shared between several applications), regardless of the current user.
fGlobalDirUser (Function)
Returns a directory path for the global data of current application (data shared between several applications), for the current user.
fGraphicFilter (Example)
Usage example of the fGraphicFilter function
fGraphicFilter (Function)
Returns the list of image formats supported by the current platform, in the format expected by the filter of fSelect.
fImageSelect (Example)
Usage example of the fImageSelect function
fImageSelect (Function)
Opens the image picker of Windows.
fInsertTextAtBeginning (Function)
Inserts text at the beginning of a file without overwriting the existing text.
fIsImage (Function)
Determines whether a file on disk or in a buffer corresponds to an image format recognized by WINDEV or WEBDEV.
fListDirectory (Example)
Usage example of the fListDirectory function
fListDirectory (Function)
Lists the subdirectories of a given directory and returns the full paths of listed subdirectories.
fListDisk (Function)
Returns the list of disks installed on the computer.
fListFile (Example)
Usage example of the fListFile function
fListFile (Function)
Lists the files found in a directory and returns the list of files.
fListResource (Function)
Lists the resources integrated to the application.
fLoadBuffer (Function)
Loads the content of an external file (text, image, ...) in a buffer variable.
fLoadResource (Function)
Loads the content of a resource from a library.
fLoadText (Function)
Loads the contents of a text file into any text field or variable (string variable, window edit control, report label field, etc.).
fLock (Example)
Usage example of the fLock function
fLock (Function)
Entirely or partially locks an external file.
fLongName (Example)
Usage example of the fLongName function
fLongName (Function)
Returns the long name of a file or directory.
fLongPath (Example)
Usage example of the fLongPath function
fLongPath (Function)
Returns the full long path of a file or directory.
fMakeDir (Example)
Usage example of the fMakeDir function
fMakeDir (Function)
Creates a directory (and the intermediate directories if necessary).
fMerge (Function)
Merges several files into a single one.
fMIMEType
Returns the type of file according to the MIME standard (Multipurpose Internet Mail Extensions).
fMoveDir (Example)
Usage example of the fMoveDir function
fMoveDir (Function)
Moves a directory and its content.
fMoveFile (Function)
Moves a file from one directory to another.
fOpen (Example)
Usage example of the fOpen function
fOpen (Function)
Opens an external file (ANSI or UNICODE) for programmatic manipulation.
fOpenTempFile (Function)
Creates and opens a temporary file.
fParentDir (Function)
Returns the path of the parent directory for the specified directory.
fRead (Example)
Usage example of the fRead function
fRead (Function)
Reads:
  • a block of bytes (characters) in an external file (ANSI or Unicode),
  • the content of an external file (ANSI or Unicode) and assigns it to a memory area.
fReadLine (Example)
Usage example of the fReadLine function
fReadLine (Function)
Reads a line from an external file (ANSI or Unicode).
fReadLineRegularExpression (Function)
Reads a line in an external file, gets sections of this line according to a regular expression and assigns them to a variable.
fRemoveDir (Example)
Usage example of the fRemoveDir function
fRemoveDir (Function)
Deletes a directory from a disk.
fRename (Example)
Usage example of the fRename function
fRename (Function)
Modifies the name of a file.
fReportsAndQueriesDir (Function)
Returns:
  • the full path of the directory for the custom reports and queries. This directory corresponds to the directory of the reports and queries visible by the user who created them.
  • the full path of the directory for the shared reports and queries. This directory corresponds to the directory of the reports and queries visible by all the application users.
fResourceDir (Function)
Returns the path of the read-only resources of the application.
fSaveBuffer (Function)
Creates and fills a text file with the content of a string or buffer variable.
fSaveText (Function)
Creates and fills a text file with the content of a text control or text variable (string variable, edit control in a window, Static control in a report, ...).
fSeek (Example)
Usage example of the fSeek function
fSeek (Function)
Gets and sets current position in an external file.
fSelect (Example)
Usage example of the fSelect function
fSelect (Function)
Opens the Windows file picker.
fSelectDir (Example)
Usage example of the fSelectDir function
fSelectDir (Function)
Opens a directory picker.
fSep (Function)
Returns the separator of directory according to the current platform ('\' or '/').
fSeparator (Function)
Returns a file path with normalized separators.
fShortName (Example)
Usage example of the fShortName function
fShortName (Function)
Returns the short name of a file or directory.
fShortPath (Example)
Usage example of the fShortPath function
fShortPath (Function)
Returns the full short path of a file or directory.
fSize (Example)
Usage example of the fSize function
fSize (Function)
Returns the size of a file (in bytes).
fSizeUncompressed (Example)
Usage example of the fSizeUncompressed function
fSizeUncompressed (Function)
Returns the size of a file before compression. When a file is decompressed by fUncompress, we recommend that you to compare the non-compressed size of file with the available disk space.
fSplit (Function)
Splits a file into several files.
fStopCompress (Example)
Usage example of the fStopCompress function
fStopCompress (Function)
Stops the operation used to compress or decompress a file.
fTempDir (Function)
Returns the name of directory used to store the temporary files.
fTempFile (Example)
Usage example of the fTempFile function
fTempFile (Function)
Returns the name of a unique temporary file.
fTempPath (Example)
Usage example of the fTempPath function
fTempPath (Function)
Returns the name of directory used to store the temporary files.
fTime (Example)
Usage example of the fTime function
fTime (Function)
Returns or modifies the different times associated with a file or directory (date created, modified or accessed).
fUncompress (Example)
Usage example of the fUncompress function
fUncompress (Function)
Decompresses a file that was compressed by fCompress.
Functions for handling directories and external files
List of functions for handling external files
Functions for handling directories and external files (prefix syntax)
External file functions (prefix syntax)
fUnlock (Example)
Usage example of the fUnlock function
fUnlock (Function)
Entirely or partially unlocks an external file.
fWatchDirectory (Function)
Detects changes made to the contents of a directory.
fWatchFile (Function)
Starts watching a file.
fWatchStop (Function)
Stops watching a file or directory.
fWatchStopAll (Function)
Stops all current watch tasks of files and directories.
fWebDir (Function)
Returns the physical name of the directory containing the images, JavaScript files and Java files of the WEBDEV website.
fWrite (Example)
Usage example of the fWrite function
fWrite (Function)
Writes:
  • a character string to an external file.
  • a memory section.
fWriteLine (Example)
Usage example of the fWriteLine function
fWriteLine (Function)
Writes a line to a text file (ANSI or Unicode).
Handling the external files
WINDEV, WINDEV Mobile and WEBDEV propose several functions allowing you to manage the external files from your WINDEV/WINDEV Mobile applications or from your WEBDEV sites...
Storing files in Android
The file system on the devices running Android is divided into two main storage areas...
Summary table: Application directory management by platform
WLanguage procedures
8 documents