Writes data to the print stream with new lines added.
The parameter, data
, is the data to write. data
can be a number or string, as in myWriter.print('hi')
, or an array of numbers and strings, as in myWriter.print([1, 2, 3])
. A comma will be inserted between array array elements when they're added to the print stream.
示例
语法
print(data)
参数
data
String|Number|Array:
data to be written as a string, number, or array of strings and numbers.
Notice any errors or typos? Please let us know. Please feel free to edit src/io/files.js and open a pull request!