Difference between revisions of "Write"
From ComputerCraft Wiki
(created the page) |
|||
Line 2: | Line 2: | ||
|name=write | |name=write | ||
|args= [[string (type)|string]] | |args= [[string (type)|string]] | ||
− | |api= | + | |api= |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Lets you write the string on the terminal. | |desc=Lets you write the string on the terminal. |
Revision as of 13:12, 8 July 2012
Function write | |
Lets you write the string on the terminal. | |
Syntax | write(string) |
Returns | nil |
Part of | ComputerCraft |
API | none |
Examples
Example | |
Writes something. | |
Code |
write ("Hello ") write ("World!") |
Output | Hello World! (in one line) |
Additional Notes
- Starts writing where the last write stopped as opposed to print() which always prints in a new line.
- When used at the end of a program, the following prompt will be in the same line.