例如,一个类可能会打开一个流,并将其传递给另一个类以阅读来自文件的信息。
For example, one class may open a stream and pass it to another class to read information from a file.
有一点不是很重要但却很有帮助,初始打开每个应用程序时,都具有三个文件描述符,从0到2,分别表示标准输入、输出和错误流。
As a bit of helpful trivia, each application is initially opened with three file descriptors, 0 through 2, for the standard input, output, and error streams, respectively.
通过 URL 位置,您可以打开读属性文件的流。
With the URL location, you can open a stream to read the properties file.
应用推荐