PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Versions 15 and later
Android Most of these functions are now available for the Android applications.
New in version 15
Android Most of these functions are now available for the Android applications.
Android Most of these functions are now available for the Android applications.
Versions 16 and later
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
The following functions are used to manage the external files:
fAddBufferAdds the content of a buffer at the end of a file.
fAddTextAdds the content of a character string at the end of a file.
fAttributeReturns or modifies the attributes of a file.
fAttributeReadOnlySpecifies whether a text file is read-only and changes the read-only attribute of a file.
fBuildPathBuilds 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.
fCacheDirReturns the path of the directory that will be used to store the data in cache on the internal storage space of the application.
fChangeSizeResizes an external file.
fCloseCloses an external file.
fCompareCompares the content of two files bit by bit.
fCompressCompresses a file.
fCopyDirCopies the content of a directory and possibly the content of its sub-directories.
fCopyFileCopies one or more files (regardless of their attributes).
fCopyFileWebFolderCopies 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).
fCreateCreates an external file.
fCreateLinkCreates a link on a file at the specified location.
fCryptEncrypts a file in binary or ASCII format.
fCurrentDirIdentifies or modifies the current directory.
fCurrentDriveReturns or modifies the current disk.
fDataDirReturns the full path of the directory of HFSQL data files specified by the user when installing the application.
fDataDirCommonReturns a directory path for the shared data of the current application:
  • between all the users of the computer
  • between all the TSE users
This directory can be used without restriction in Windows XP, Vista, ... This directory is used to store: 
  • the files for the general configuration of the application (.INI files, .XML files, ...).
  • the data files common to all the users (HFSQL.fic, .ndx and.mmo files).
fDataDirUserReturns a directory path for the data of the current user of the current application.
fDateReturns or modifies the different dates associated with a file or directory (creation, modification or access).
fDateTimeReturns or modifies the different dates and times associated with a file or directory (creation, modification or access).
fDeleteDeletes a file accessible from the current computer.
fDeleteFileWebFolderDeletes an image file from the "_WEB" directory of the application (or from one of its sub-directories).
fDetectRemovableStorageDetects whether a removable storage unit (CD, USB key, USB camera, ...) was added or removed.
fDirFinds a file or a directory.
fDirAttribfDirAttrib is only kept for backward compatibility.
fDirAttributeReturns or modifies the attributes of a directory.
fDirectoryExistChecks the existence of a directory.
fDirExistChecks the existence of a directory.
fDirSizeReturns the size of a directory in bytes.
fDriveInfoReturns information about a disk.
fDriveReadyUsed to find out:
  • whether the floppy drive is ready,
  • whether the disk exists.
fExeDirReturns the directory from which the execution is started.
fExtractPathReturns the different elements of a path: disk, directories, name and extension of the file.
fExtractResourceExtracts a resource from the application into a physical device location.
fFileExistChecks the existence of an external file.
fFindFinds a character string or a buffer in a file opened by fOpen.
fGlobalDirCommonReturns a directory path for the global data of current application (data shared between several applications), regardless of the current user.
fGlobalDirUserReturns a directory path for the global data of current application (data shared between several applications), for the current user.
fGraphicFilterReturns the list of image formats supported by the current platform, in the format expected by the filter of fSelect.
fImageSelectOpens the image picker of Windows.
fIsImageUsed to find out whether a file found on disk or a file contained in a buffer corresponds to an image format recognized by WINDEV, WEBDEV or WINDEV Mobile.
fListDirectoryLists the sub-directories of a given directory and returns the list of sub-directories.
fListDiskReturns the list of disks installed on the computer.
fListFileLists the files found in a directory and returns the list of files.
fListResourceLists the resources integrated to the application.
fLoadBufferLoads the content of an external file (text, image, ...) in a buffer variable.
fLoadTextLoads the content of a text file into any text control or text variable (string variable, edit control in a window, Static control in a report, ...).
fLockEntirely or partially locks an external file.
fLongNameReturns the long name of a file or directory.
fLongPathReturns the full long path of a file or directory.
fMakeDirCreates a directory (and the intermediate directories if necessary).
fMakeDir_55fMakeDir_55 is kept for backward compatibility.
fMergeMerges several files into a single one.
fMoveDirMoves a directory and its content.
fMoveFileMoves a file from a directory into another one.
fNameOfFileReturns the name of an external file that is currently opened.
fOpenOpens an external file (ANSI or UNICODE) in order to handle it by programming.
fOpenTempFileCreates and opens a temporary file.
fParentDirReturns the path of the parent directory for the specified directory.
fReadReads:
  • 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 zone.
fReadLineReads a line in an external file (in ANSI or UNICODE format).
fReadLineRegularExpressionReads a line in an external file and retrieves in variables the sections of this line according to a regular expression.
fRemoveDirDeletes a directory from a disk.
fRenameModifies the name of a file.
fReportsAndQueriesDirReturns:
  • 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.
fResourceDirReturns the path of the read-only resources of the application.
fSaveBufferCreates and fills a text file with the content of a string or buffer variable.
fSaveTextCreates 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, ...).
fSeekReturns and modifies the current position in an external file.
fSelectOpens the Windows file picker.
fSelectDirOpens a directory picker.
fSepReturns the separator of directory according to the current platform ('\' or '/').
fSeparatorReturns a file path with normalized separators.
fShortNameReturns the short name of a file or directory.
fShortPathReturns the full short path of a file or directory.
fSizeReturns the size of a file (in bytes).
fSizeUncompressedReturns 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.
fSplitSplits a file into several files.
fStopCompressStops the operation used to compress or decompress a file.
fTempDirReturns the name of directory used to store the temporary files.
fTempFileReturns the name of a unique temporary file.
fTempPathReturns the name of directory used to store the temporary files.
fTimeReturns or modifies the different times associated with a file or with a directory (creation, modification or access).
fTrackDirectoryDetects the modifications performed on the content of a directory.
fTrackFileTriggers the tracking of a file.
fTrackStopStops all current tracking of a file or directory.
fTrackStopAllStops all the current tracking performed on the files and directories.
fUncompressDecompresses a file that was compressed by fCompress.
fUncryptDecrypts a file that was encrypted by fCrypt.
fUnlockEntirely or partially unlocks an external file.
fWebDirReturns the physical name of the directory containing the images, the Javascript files and the Java files of the WEBDEV site.
fWriteWrites:
  • a character string into an external file.
  • a memory section.
fWriteLineWrites a line into a text file (in ANSI or UNICODE format).
The following functions can also be used to manage the external files:
CompleteDirAdds (if necessary) the "\" character at the end of a character string. This function is useful for building full file names when the path format is unknown (if the user types a file path for example)
UncompleteDirRemoves the "/"' or "\"' character found at the end of a string. This function is useful for building full file names when the path format is unknown (if the user types a file path for example)
Related Examples:
The fListFile function Unit examples (WINDEV): The fListFile function
[ + ] Using fListFile and its syntax that directly returns the list of files/directories found in string format.
Handling text files Unit examples (WINDEV): Handling text files
[ + ] Handling "text" files with WINDEV:
- Create a text file
- Write into a text file
- Read in a text file
WD HTML Export Training (WINDEV): WD HTML Export
[ + ] This example explains how to export data in HTML format with the WLanguage functions.
The following topics are presented in this example:
1/ the functions for managing the external files for generating the HTML file
2/ the operations performed on the HTML tags
3/ the generation of an HTML report
The generation of an HTML page is performed from the data found in a memory table.
By programming
The principle consists in generating a text file with a "HTM" extension. The WLanguage function named "fWrite" will be used.
This example easily writes the text strings by respecting the syntax of the HTML language.
Automatically
The principle consists in creating a report on table based on the memory table that was previously filled.
The printout is requested with an HTML output.
The TableTo functions Unit examples (WINDEV): The TableTo functions
[ + ] Exporting table data with the WLanguage functions.
The following topics are presented in this example:
1/ interfacing with Word and Excel
2/ sending data to the clipboard
3/ generating a text file
This example explains how to export the content of a table to a Word document, an Excel workbook, the clipboard or a text file via the following WLanguage functions: TableToWord, TableToExcel, ToClipboard, TableToText.
Handling text files Unit examples (WEBDEV): Handling text files
[ + ] This example explains how to handle "non HFSQL" files with WEBDEV and it allows you to:
- Create a text file
- Write into a text file
- Read in a text file
WD File Synchronization Complete examples (WINDEV): WD File Synchronization
[ + ] This example is used to synchronize two file directories in WLanguage. After the synchronization, the destination directory and the source directory are identical. The comparison is based on the presence and on the date of the files. This can be very useful to manage the backups.
In this example, we will present the functions for handling the files on disk.

Summary of the example supplied with WINDEV:
Select a source directory containing the files to save and a destination directory where these files will be saved. Start the synchronization. The application will compare the content of the two directories. If the file is not found, if the source file is more recent, then the file will be updated in the backup directory.
Handling text files Unit examples (WINDEV Mobile): Handling text files
[ + ] Handling external "text" files:
- Create a text file
- Write into a text file
- Read in a text file
PC Pocket Picker Windows Components (WINDEV Mobile): PC Pocket Picker
[ + ] PC Pocket Picker

This example proposes a component used to select a file or a directory found on the Pocket PC linked to the PC.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment