PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
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
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 (with quotes)
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 (with quotes)
Text to Insert.
Business / UI classification: Business Logic
Component: wd260std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment