saveStream()

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

saveStream()

示例
描述 Save the contents of a stream to a file in the sketch folder. This is basically saveBytes(blah, loadBytes()), but done more efficiently (and with less confusing syntax).

The target parameter can be either a String specifying a file name, or, for greater control over the file location, a File object. (Note that, unlike some other functions, this will not automatically compress or uncompress gzip files.)

语法
saveStream(target, source)
参数
target File, or String: name of the file to write to
source String: location to read from (a filename, path, or URL)
返回值 boolean or void
相关 createOutput()

Updated on October 2, 2018 05:02:07pm EDT

saveStream()