printer.write

From ComputerCraft Wiki
Revision as of 00:44, 1 December 2012 by AfterLifeLochie (Talk | contribs) (Please do not change categories without confirming with me first.)

Jump to: navigation, search


Grid Redstone.png  Function printer.write
Writes onto the paper
Syntax printer.write(string text)
Returns empty string (bug?)
Part of ComputerCraft
API printer

Examples

Grid paper.png  Example
Writes text onto the loaded paper, at the cursor's current position. This does not produce a new line, and anything else printed or written after this will be on the same line.
Code
printer.write("Hello, World!")
Output Prints "Hello, World!" onto the loaded paper.