在清单1中,您将看到一个简短程序,该程序尝试打开一个不太可能存在的文件,并使用两种不同的方法向运行该程序的用户报告错误。
In Listing 1, you'll find a short program that tries to open a file that is unlikely to exist and reports the error to whomever is running the program, using two different techniques.
打开保存的配置文件,添加以下设置(如果已经存在,就修改它们)。
Open the saved configuration file and add the following Settings or change if already existing.
在Linux系统中打开的每个文件都都存在一个file对象。
For each opened file in a Linux system, a file object exists.
When you're working on a file, it's saving constantly to RAM but also hopefully to disc, the hard disk so you don't actually lose it if the power goes off.
当你打开一个文件,它不断地保存在内存中,但对于光盘,硬盘,当你断开电源的时候,数据不会丢失。
应用推荐