FILE READ TEXT: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
{{Command|syntax=FILE_READ_TEXT <file Number>, <string variable> | {{Command|syntax=FILE_READ_TEXT <file Number>, <string variable> | ||
|description= | |description=Read a line of text from a file that was opened using the [FILE_OPEN]. | ||
|param1=<file Number>|param1_desc={{file Number}} | |param1=<file Number>|param1_desc={{file Number}} | ||
|param2=<string variable>|param2_desc= | |param2=<string variable>|param2_desc=String variable name | ||
}} | }} | ||
===Example=== | ===Example=== | ||
: | :FILE_OPEN "DataFile.txt", 2, READ | ||
:FILE_READ_VARS 2, a$ | |||
:For an example macro see [[Global_Local]] | :For an example macro see [[Global_Local]] | ||
[[Category:External_File_Handling]] | [[Category:External_File_Handling]] | ||
Revision as of 23:54, 18 August 2010
Command
- FILE_READ_TEXT <file Number>, <string variable>
Read a line of text from a file that was opened using the [FILE_OPEN].
Parameters
- <file Number>
- File number, 1 to 10. You may have up to 10 files open at the same time.
- <string variable>
- String variable name
Example
- FILE_OPEN "DataFile.txt", 2, READ
- FILE_READ_VARS 2, a$
- For an example macro see Global_Local