Difference between revisions of "FILE WRITE VARS"

From Macros Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|syntax=FILE_WRITE_VARS <unit>, <list of up to 10 variable names>
+
[[:Category:External_File_Handling|{{Up}}]]
|description=*DESCRPTION*
 
  
|param1=<unit>|param1_desc={{unit}}
+
{{Command|syntax=FILE_WRITE_VARS <file Number>, <list of up to 10 values>
|param2=<list of up to 10 variable names>|param2_desc={{variable}}
+
|description=:Write a line of numeric values to a file that was opened using the [[FILE_OPEN]] command.
 +
:The text may contain up to 10 values, each seperated by a comma.
 +
 
 +
|param1=<file Number>|param1_desc={{file Number}}
 +
|param2=<list of up to 10 values>|param2_desc=List of numeric values and/or variable names.
 
}}
 
}}
  
 
===Example===
 
===Example===
:- FILE_WRITE_VARS
+
:FILE_OPEN "DataFile.txt", 4, WRITE
 +
:FILE_WRITE_VARS v1, v2, v3, 1.296, v5
  
 
[[Category:External_File_Handling]]
 
[[Category:External_File_Handling]]

Latest revision as of 13:24, 13 January 2011

Up

Command

FILE_WRITE_VARS <file Number>, <list of up to 10 values>


Write a line of numeric values to a file that was opened using the FILE_OPEN command.
The text may contain up to 10 values, each seperated by a comma.

Parameters

<file Number>
File number, 1 to 10. You may have up to 10 files open at the same time.
<list of up to 10 values>
List of numeric values and/or variable names.

Example

FILE_OPEN "DataFile.txt", 4, WRITE
FILE_WRITE_VARS v1, v2, v3, 1.296, v5