File: Difference between revisions
From MultiCharts
no edit summary
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Used in Print statements to specify an ASCII file as the output location; must precede the expressions to be printed and be followed by a comma. | Used in Print statements to specify an ASCII file as the output location; must precede the expressions to be printed and be followed by a comma. | ||
If the specified file does not exist, the file will be created. | |||
== Usage == | |||
<syntaxhighlight>File("PathFilename")</syntaxhighlight> | <syntaxhighlight>File("PathFilename")</syntaxhighlight> | ||
Where: | Where: | ||
:'''PathFilename''' - a string expression specifying the path and filename. | |||
== Example == | |||
<syntaxhighlight>Print(File("C:\test.txt"),CurrentDate,CurrentTime); | <syntaxhighlight>Print(File("C:\test.txt"), CurrentDate, CurrentTime);</syntaxhighlight> | ||
CurrentTime to the test.txt file in the root directory of the C: | Will save the output of CurrentDate and CurrentTime to the test.txt file in the root directory of the C: drive. | ||
[[Category:Output]] | [[Category:Output]] |