FILE READ TEXT: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
New page: {{Command|syntax=FILE_READ_TEXT <unit>, <string variable> |description=*DESCRPTION* |param1=<unit>|param1_desc= |param2=<string variable>|param2_desc= }} ===Example=== :- FILE_READ_TEXT ...
 
Mikeo (talk | contribs)
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|syntax=FILE_READ_TEXT <unit>, <string variable>
[[:Category:External_File_Handling|{{Up}}]]
|description=*DESCRPTION*


|param1=<unit>|param1_desc=
{{Command|syntax=FILE_READ_TEXT <file Number>, <string variable>
|param2=<string variable>|param2_desc=
|description=:Read a line of text from a file that was opened using the [[FILE_OPEN]] command.
 
|param1=<file Number>|param1_desc={{file Number}}
|param2=<string variable>|param2_desc={{parameter_variable_string_name}} the line of text.
}}
}}


===Example===
===Example===
:- FILE_READ_TEXT
:FILE_OPEN "DataFile.txt", 2, READ
:FILE_READ_TEXT 2, a$


:For an example macro see [[Global_Local]]
[[Category:External_File_Handling]]
[[Category:External_File_Handling]]

Latest revision as of 17:26, 13 January 2011

Up

Command

FILE_READ_TEXT <file Number>, <string variable>


Read a line of text from a file that was opened using the FILE_OPEN command.

Parameters

<file Number>
File number, 1 to 10. You may have up to 10 files open at the same time.
<string variable>
Name of string variable to be set to the line of text.

Example

FILE_OPEN "DataFile.txt", 2, READ
FILE_READ_TEXT 2, a$
For an example macro see Global_Local