首页 > 文档 > saveStream()保存流文件
2017
08-02

saveStream()保存流文件

Name

saveStream()保存流文件

   

Examples

 

Description

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.)

将流的内容保存到草绘文件夹中的文件中。这基本上是 saveBytes (废话, loadBytes ()), 但做得更有效率 (和较少混淆的语法)

 

目标参数可以是指定文件名的字符串, 或者是用于对文件位置进行更大控制的文件对象。(请注意, 与其他一些函数不同, 这不会自动压缩或解压缩 gzip 文件。

Syntax

saveStream(target, source)

Parameters

target

File, or String: name of the file to write to要写入的文件名

source

String: location to read from (a filename, path, or URL)要读取的文件的路径

   
   

Returns

boolean or void

Related

createOutput()



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。