FileAppend (Reserved Word)

image\trumpet2.gif Disclaimer

Sends information to an existing ASCII file specified by the user and adds the information to the bottom of the file.

FileAppend("str_Filename", "str_Text") ;

Where str_Filename is a string expression that is the path and file name for the existing ASCII text file to which you want to append the string of text. The path and file name should be enclosed in quotes.str_Text is the string expression to be appended to the file.

FileAppend(string_path, string_text);

Where string_path is a string variable containing the path and file name for the existing ASCII text file to which you want to append string_text.

Remarks

If the file does not exist, it will be created.

To send numeric expressions to a file, it must first be converted to a string expression using the NumToStr function.

Example

To create indicator that would send the date to an ASCII file every time the symbol gapped up 10% on the open, you would write:

If Open > High[1] * 1.1 Then
 
FileAppend("c:\mydata.txt", "This symbol gapped up on " + NumToStr(Date, 0) +
NewLine
);