打开一个流以使用指定的方法向指定的资源写入数据。
Opens a stream for writing data to the specified resource, by using the specified method.
例如,一个类可能会打开一个流,并将其传递给另一个类以阅读来自文件的信息。
For example, one class may open a stream and pass it to another class to read information from a file.
打开一个流还是需要使用内置的open fileName函数,但是也可以调用io . open fileName。
You still open a stream using the built-in open fileName function, although you can also call io.open fileName.
应用推荐