FILE READ VARS: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
New page: {{Command|syntax=FILE_READ_VARS <unit>, <list of up to 10 variable names> |description=*DESCRPTION* |param1=<unit>|param1_desc= |param2=<list of up to 10 variable names>|param2_desc= }} ... |
No edit summary |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | [[:Category:External_File_Handling|{{Up}}]] | ||
|param1=< | {{Command|syntax=FILE_READ_VARS <file Number>, <list of up to 10 variable names> | ||
|param2=<list of up to 10 variable names>|param2_desc= | |description=:Read a line of numeric values from 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 variable names>|param2_desc=List of variable names | |||
}} | }} | ||
===Example=== | ===Example=== | ||
: | :FILE_OPEN "DataFile.txt", 3, READ | ||
:FILE_READ_VARS 3, v1, v2, v3 | |||
[[Category:External_File_Handling]] | [[Category:External_File_Handling]] | ||
Latest revision as of 17:24, 13 January 2011
Command
- FILE_READ_VARS <file Number>, <list of up to 10 variable names>
- Read a line of numeric values from 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 variable names>
- List of variable names
Example
- FILE_OPEN "DataFile.txt", 3, READ
- FILE_READ_VARS 3, v1, v2, v3