PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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.
iPhone/iPadIOS WidgetMac Catalyst This parameter can correspond to a full path or a path relative to the current directory (returned by fCurrentDir). This parameter is case-sensitive.
Reminder: On iPhone/iPad, an application has the rights to write into its setup directory or into one of its subdirectories.
<Text>: Character string
Text to Insert.
Business / UI classification: Business Logic
Component: wd270std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment