Difference between revisions of "Write"

From ComputerCraft Wiki
Jump to: navigation, search
m
m (Added to CAT:LuaCoreFunctions.)
Line 16: Line 16:
 
*When used at the end of a program, the following prompt will be in the same line.
 
*When used at the end of a program, the following prompt will be in the same line.
 
}}
 
}}
 +
 +
[[Category:Lua_Core_Functions]]

Revision as of 21:30, 28 November 2012


Grid Redstone.png  Function write
Lets you write the string on the terminal.
Syntax write(string)
Returns nil
Part of ComputerCraft
API none

Examples

Grid paper.png  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.