PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Adds the content of a character string at the end of a file.
Versions 21 and later
PHP This function is now available for the PHP sites.
New in version 21
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
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 find out the error details, use ErrorInfo associated with the errMessage constant.
<File name>: Character string (with quotes)
File to use (up to 260 characters). This parameter can correspond to:
  • 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 (with quotes)
Text that must be added to the file.
Component : wd240std.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