Even if you already know that a string is an array of characters, read this part.
即使你已经知道一个字符串是一个字符数组,你也应该阅读本部分。
We read an array of records and then write the array.
我们读取一个记录数组,然后写入该数组。
The operation of reading from a file is very straight forward, we open a file stream, create an array to hold the data, and finally read all the data into the array.
从文件中读取内容的操作是非常直截了当的:我们打开一个文件流对象,创建一个数组来放置数据,最后把所有数据都读到这个数组中。
应用推荐