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
Adds the content of a character string at the end of a file.
Example
IF fAddText("C:\test\MyFile.txt", "String added at the end of file")
Info("Addition successful")
END
Syntax
<Result> = fAddText(<File name> , <String to add>)
<Result>: Boolean
  • True if the addition was performed,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<File name>: Character string
File to be used (up to 260 characters). This parameter can be:
  • a file name. This file will be automatically sought in the current directory (returned by fCurrentDir).
  • a file name with its full or relative path. A UNC path can be used.
Caution: This file is modified by fAddText. The file is automatically created if it does not exist.
WindowsLinux This parameter can be in Ansi or Unicode format.
<String to add>: Character string
Text that must be added to the file.
Component: wd290std.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Exemplo faddText
Exemplo faddText

s_TEXTO_ADICIONAR is string=""
s_TEXTO_ADICIONAR+=CR
s_TEXTO_ADICIONAR+="VOU ADICIONAR"

fAddText("e:\aleva\teste.txt",s_TEXTO_ADICIONAR)

//Blog com video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/09/curso-windev-arquivos-009-arquivos.html
https://www.youtube.com/watch?v=1hOJD7zv6fk

De matos AMARILDO
01 Sep. 2016

Last update: 08/24/2022

Send a report | Local help