Difference between revisions of "FILE READ TEXT"

From Macros Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
{{Command|syntax=FILE_READ_TEXT <file Number>, <string variable>
 
{{Command|syntax=FILE_READ_TEXT <file Number>, <string variable>
|description=:Read a line of text from a file that was opened using the [FILE_OPEN].
+
|description=:Read a line of text from a file that was opened using the [[FILE_OPEN]] command.
  
 
|param1=<file Number>|param1_desc={{file Number}}
 
|param1=<file Number>|param1_desc={{file Number}}

Revision as of 12:23, 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>
String variable name

Example

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