This is because we keep opening the same file, located in the same directory, adding the two strings as files, and closing again.
这是因为一直在打开同一个目录中的同一个文件,添加两个字符串作为文件,并再次关闭。
Observe that in the demo code, the client also subscribes to an additional closing event that is published by the MIDI file player at the end of file.
观察演示代码中的通配符,客户端还订阅了额外的关闭事件,该事件是由MIDI文件播放器在文件的末尾发布的。
Open the log file in a text editor, and add a unique tag to the very beginning of the file and a corresponding closing tag at the end of the file.
在文本编辑器中打开日志文件,在每个文件的开头添加惟一的标记,在末尾添加相应的结束标记。
Reducing an element's interest closes its editor and, conversely, closing a file reduces its interest.
减少元素的兴趣等级会关闭其编辑器,且反之亦然,关闭一个文件也会减少其兴趣等级。
Remember from the section on opening and closing that we need two parameters (file path name and access mode to the device) to open a device on Linux.
从有关设备打开和关闭的讲解可知,我们需要两个参数(文件路径名和设备访问模式)来打开Linux设备。
It is needed for the file opening, closing, reading, and writing functions (fopen , fclose , fgets , getc , and so on), for the printf family of functions, and for the setvbuf function.
文件的打开、关闭、读和写函数(fopen 、fclose 、fgets 、getc等等)、printf函数系列和setvbuf函数都需要它。
The Python script treats sendmail this way by opening it as if it were a text file, writing the appropriate information to it, and then "closing" it.
Python脚本就像打开文本文件一样打开sendmail,向其中写入适当的信息,然后 “关闭”它。
The file auto deletes if the program crashes or exits normally, so the programmer doesn't need to worry about closing the file or removing it later.
如果程序崩溃或正常退出,则将自动删除相应的文件,所以程序员不需要关闭文件或稍后对其进行删除操作。
I didn't need to worry about exceptions or closing the file because everything was handled for me.
我不需要考虑异常或关闭文件,因为它替我处理了每件事。
Try running the command on a C source file -- it should output the entire main() { } block, including the initial "main()" and the closing '}'.
试着对C源文件运行该命令 --它应该输出整个main() { }块,包括开始的 "main()"和结束的'}'。
在关闭文件时出错。
Sounds in response to user activity, such as a click after a keypress, a whoosh accompanying opening and closing windows, or a klunk when a file is deleted.
用声音对用户的行为作出响应,比如在按键之后的滴答声,打开或关闭一个窗口后发出的“嗖”的声音,或者是一个文件被删除后发出的沉闷的声音。
Be sure there is nothing after the closing PHP tag in the file.
确定文件中关闭的PHP标签后没有任何内容。
The stuck operation finally completes, and the search index service finally gets around to closing that handle it had open, but it ends up unwittingly closing the log file handle.
停留的操作最后完成,和搜索索引服务最后关闭该句柄,它周围的获取打开,但是它最终会无意关闭日志文件句柄。
The framework also prompts the user to save a modified file before closing it.
框架也在关闭前迅速保存改动文件。
Some resource cleanup, such as closing a file, must always be executed even if an exception is thrown.
有些资源清理(如关闭文件)必须总是执行,即使有异常发生。
Call this method after closing all other files, but before closing the assembly file.
在关闭所有其他文件之后,但在关闭该程序集文件之前调用此方法。
To be sure your file-sharing program is closed, take the time to "exit" the program, rather than just clicking "X" or "closing" it.
确保你的文件共享软件已经关闭,花点时间“退出”程序,而不是仅仅点那个叉叉,或者关闭。
In some instances, closing the file-sharing program window does not actually close your connection to the network.
在某些情况下,关掉文件共享程序的窗口并未真正断开与网络的连接。
If the message says "bad file number", the specified file may have been closing in the foreground while compiling in the background.
如果讯息指出“错误的档案编号”,则指定的档案在背景编译的同时,可能已于前景关闭。
Thee freopen function opens a specified file on a specified stream, closing the stream first if it is already open.
freopen函数使用指定的流打开一个指定的文件,如果它已经打开拉,首先关闭它。
Thee freopen function opens a specified file on a specified stream, closing the stream first if it is already open.
freopen函数使用指定的流打开一个指定的文件,如果它已经打开拉,首先关闭它。
应用推荐