Difference between revisions of "File"

From MultiCharts
Jump to navigation Jump to search
(Created page with "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...")
 
Line 7: Line 7:
 
   
 
   
 
==== Example ====
 
==== Example ====
<syntaxhighlight>Print(File("C:\test.txt"),CurrentDate,CurrentTime);  will save the output of CurrentDate and CurrentTime to the test.txt file in the root directory of the C: hard drive</syntaxhighlight>  
+
<syntaxhighlight>Print(File("C:\test.txt"),CurrentDate,CurrentTime);  will save the output of CurrentDate and  
 +
CurrentTime to the test.txt file in the root directory of the C: hard drive</syntaxhighlight>  
 
   
 
   
 
[[Category:Math and Trig]]
 
[[Category:Math and Trig]]

Revision as of 12:31, 23 January 2012

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

File("PathFilename")

Where: PathFilename - a string expression specifying the path and filename

Example

Print(File("C:\test.txt"),CurrentDate,CurrentTime);  will save the output of CurrentDate and 
CurrentTime to the test.txt file in the root directory of the C: hard drive