PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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 PHP sites.
New in version 21
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
Versions 22 and later
Java This function is now available for Java applications.
New in version 22
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Example
IF fAddText("C:\test\MonFichier.txt", "Chaîne ajoutée en fin de fichier")
Info("Ajout réussi")
END
Syntax
<Result> = fAddText(<File name> , <String to add>)
<Result>: Boolean
  • True if the addition was performed,
  • False otherwise. To find out the name of the error, use the function ErrorInfo with the constant errMessage.
<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.
Windows 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: wd260std.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