Difference between revisions of "FileAppend"
Jump to navigation
Jump to search
(Created page with "Appends the specified string expression to the end of the specified ASCII file; if the specified file does not exist, the file will be created. ==== Usage ==== <syntaxhighl...") |
m |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Appends the specified string expression to the end of the specified ASCII file; if the specified file does not exist, the file will be created. | Appends the specified string expression to the end of the specified ASCII file; if the specified file does not exist, the file will be created. | ||
− | + | == Usage == | |
− | <syntaxhighlight>FileAppend("PathFilename","StringExpression")</syntaxhighlight> | + | <syntaxhighlight>FileAppend("PathFilename", "StringExpression")</syntaxhighlight> |
− | Where: | + | Where: |
+ | |||
+ | :'''PathFilename''' - a string expression specifying the path and filename, | ||
− | + | :'''StringExpression''' - the string expression to be appended to a file. | |
− | |||
− | |||
− | |||
− | |||
+ | == Notes == | ||
+ | * Use [[FileDelete]] to delete files. | ||
+ | == Example == | ||
+ | <syntaxhighlight>FileAppend("C:\test.txt","Appended Text");</syntaxhighlight> | ||
+ | Will append the string expression "Appended Text" to the end of the test.txt file in the root directory of the C: hard drive. | ||
− | [[Category: | + | [[Category:Output]] |
Latest revision as of 15:01, 19 February 2012
Appends the specified string expression to the end of the specified ASCII file; if the specified file does not exist, the file will be created.
Usage
FileAppend("PathFilename", "StringExpression")
Where:
- PathFilename - a string expression specifying the path and filename,
- StringExpression - the string expression to be appended to a file.
Notes
- Use FileDelete to delete files.
Example
FileAppend("C:\test.txt","Appended Text");
Will append the string expression "Appended Text" to the end of the test.txt file in the root directory of the C: hard drive.