ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
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
Inserts text at the beginning of a file without overwriting the existing text.
Example
// File path
FileNameAndPath = "C:\MyDirectories\File.txt"
// String to insert
sStringToWrite is string
sStringToWrite = "This is the text that will be inserted at the beginning of the file"
// Insert at the beginning
let bInsert_success = fInsertTextAtBeginning(sFilePath, sStringToWrite)
Syntax
<Result> = fInsertTextAtBeginning(<File path> , <Text>)
<Result>: Boolean
  • True if the insertion was performed,
  • False otherwise.
<File path>: Character string
Name and full (or relative) path of file (up to 260 characters). A UNC path can be used.
The file is automatically created if it does not exist.
<Text>: Character string
Text to Insert.
Business / UI classification: Business Logic
Component: wd290std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/23/2022

Send a report | Local help