在清单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.
这种复制操作本身存在一定的陷井,即对活动的文件系统进行复制可能是有风险的,特别是在打开了多个文件的情况下。
Such a copy is not without its traps -- copying a live file system can be risky, especially if there are open files.
在编辑器中打开GSDB .changexml文件之前,确保连接GSDB存在并且处于已连接状态。
Before opening the file GSDB.changexml in the editor, ensure that the connection GSDB exists and is in the connected state.
如果该文件不存在(由文件打开错误确定),则把“null”状态写入文件。
If the file does not exist (as determined by the file open error), write the "null" state to the file.
当进程打开了某个文件时,只要该进程保持打开该文件,即使将其删除,它依然存在于磁盘中。
When a process opens a file, it exists on disk even if deleted, as long as the process holds the file open.
服务器打开和编译适当的LZX文件,生成输出,并将它保存在一个临时目录中。
The server opens and compiles the correct LZX file, generates the output, and saves it in a temporary directory.
当我们存在一些潜在的执行缓慢的代码时,我们不再能够打开我们的简单的PHP文件,从上到下的跟踪它的执行。
So we've got potentially slower code, and we can no longer just open up our simple PHP script and follow its execution from the top of the file to the bottom.
当你打开一个文件,它不断地保存在内存中,但对于光盘,硬盘,当你断开电源的时候,数据不会丢失。
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.
上面这个不匹配的捕获也存在类似问题:它捕获了所有错误,但仅仅只报告了“打开文件时出现错误(errorin opening)”。
The mismatched catch above is similar: it catches all errors, but it reports only that there was an error in "opening." it's better to write this.
打开一个普通文本编辑器(比如记事本)并输入清单1中的代码,然后以hello . mxml为名称将该文件保存在hello文件夹中。
Open a plain text editor (Notepad will do fine) and enter the code in Listing 1, saving the file as hello.mxml in your hello folder.
如果您要求引擎打开一个目前不存在的数据库文件(使用服务器模式的- database选项或单机模式的JDBCURL),就会创建该文件及其所在目录。
If you ask the engine to open a non-existent database file (using either server mode -database option or a stand-alone mode JDBC URL), the file and containing directory will be created.
无法打开页面数据文件。请确认它存在,且权限设置正确。
Can not open the page data file. Please make sure it exists, or check its permission.
无法打开用户数据文件。请确认它存在,且权限设置正确。
Can not open the user data file. Please make sure it exists, or check its permission.
我最初的想法是,以检查是否在%PATHEXT %变量存在扩展试图打开文件之前。
My initial thought was to check if the extension exists in the % PATHEXT % variable before attempting to open the file.
为写打开一个空文件。如果指定文件已经存在,它的内容会被清空。
Opens an empty file for writing. If the given file exists, its contents are destroyed.
如果文件已经存在了,这样用写入的模式来打开,会把旧的文件都清除掉,然后重新写入文件,所以一定要小心!
If the file already exists, opening it in write mode clears out the old data and starts fresh, so be careful!
如果文件已经存在了,这样用写入的模式来打开,会把旧的文件都清除掉,然后重新写入文件,所以一定要小心!
If the file already exists, opening it in write mode clears out the old data and starts fresh, so be careful!
应用推荐