FILE WRITE TEXT: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
New page: {{Command|syntax=FILE_WRITE_TEXT <unit>, <text> |description=*DESCRPTION* |param1=<unit>|param1_desc= |param2=<text>|param2_desc= }} ===Example=== :- FILE_WRITE_TEXT [[Category:External... |
No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | [[:Category:External_File_Handling|{{Up}}]] | ||
|param1=< | {{Command|syntax=FILE_WRITE_TEXT <file Number>, <text> | ||
|param2=<text>|param2_desc= | |description=:Write a line of text from a file that was opened using the [[FILE_OPEN]] command. | ||
|param1=<file Number>|param1_desc={{file Number}} | |||
|param2=<text>|param2_desc=Text to write to the file. | |||
}} | }} | ||
===Example=== | ===Example=== | ||
: | :FILE_OPEN "DataFile.txt", 7, WRITE | ||
:FILE_WRITE_TEXT 7, a$ | |||
:FILE_WRITE_TEXT 7, "Some Text" | |||
:For an example macro see [[Global_Local]] | |||
[[Category:External_File_Handling]] | [[Category:External_File_Handling]] | ||
Latest revision as of 17:23, 13 January 2011
Command
- FILE_WRITE_TEXT <file Number>, <text>
- Write 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.
- <text>
- Text to write to the file.
Example
- FILE_OPEN "DataFile.txt", 7, WRITE
- FILE_WRITE_TEXT 7, a$
- FILE_WRITE_TEXT 7, "Some Text"
- For an example macro see Global_Local