Checking if the file pointer has reached EOF without moving the file pointer?
检查,如果文件指针达到EOF没有文件指针移动?
This script begins by opening the connection to the Arduino in a file pointer for reading.
脚本首先在一个文件指针内打开对Arduino的连接,以便读取它。
Create and open for writing only; place the file pointer at the beginning of the file.
创建并打开只写,放置在文件的开头文件指针。
The rewind function "rewinds" the position of the file pointer to the beginning of the file.
函数的作用是:将文件指针的位置倒回到文件的开头。
Create and open for reading and writing; place the file pointer at the beginning of the file.
创建并打开阅读和写作,放置在文件的开头文件指针。
Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length.
打开只写;放置在该文件的开头文件指针并截断该文件的长度为零。
The output of Listing 5 shows that as one process reads from the file, and the file pointer is moved for both processes.
清单5的输出表明,当一个进程从该文件读取时,两个进程的文件指针都在移动。
Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length.
打开阅读和写作,放置在文件的开头文件指针并截断该文件的长度为零。
The other option is to load a copy of the original file into buffer and place the file pointer at the intended position.
另一个选择是在预定位置的原始文件的副本到缓冲区,将文件指针的方法负载。
This function moves the file pointer from its current position to a new position, forward or backward, specified by the number of bytes.
整个函数将文件指针从当前位置向前或向后移动移动到一个新的位置。
As in the moment of writing, you will use seek to move the file pointer into the correct position, there will be no errors of overlapping.
在写作的那一刻,您将使用试图将文件指针移动到正确的位置,不会有错误的重叠。
First you write the contents of the mydata list to the file, then you reposition the file pointer to the start of the file and read the contents.
首先,把mydata list的内容写入文件,然后把文件指针重新定位到文件开头,并读入内容。
In this code, you start by declaring a file pointer to standard input so that you can get interactive information from the keyboard during the spell-check process.
在这段代码中,您首先要为标准输入声明一个文件指针,以便您能够在拼写检查过程中从键盘获得交互式信息。
The iocb argument can usually be treated as an opaque cookie used by the AIO subsystem; if you need the struct file pointer for this file descriptor, however, you can find it as iocb->ki_filp.
通常可以把iocb看作AIO子系统使用的不透明数据结构。然而,如果需要文件描述符的structfile指针,可以通过iocb->ki_flip获取。
These functions must be called after the stream has been opened(obviously, since each requires a valid file pointer as its first argument) but before any other operation is performed on the stream.
这些函数必须在流打开后被调用(很明显,因为每个函数都需要一个有效的文件指针作为它的第一个参数),但是在对流有任何操作之前。
This takes three parameters: the context pointer, the path and the filename of the trust store file, and a path to a directory of certificates.
这里要用到三个参数:上下文指针、可信任库文件的路径和文件名,以及证书所在目录的路径。
You can then use the return pointer to configure other aspects of the virtual file, such as the function to call when a read is performed on the file.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
If this happens, hover the mouse pointer over the red circle to display the error message, make the needed correction, and save the file again.
如果出现了此情况,请将鼠标指针悬停在红色圆圈上方以显示错误消息,然后进行必要的更正并再次保存文件。
Gets the current file row pointer, stored as an object but used as an integer, from the global variable in the data area for the test engine (this will be set up later).
从测试引擎(稍后就会安装它)数据区域中的全局变量获取当前最为结果储存但是当作整数使用的文件行指针。
Listing 1. Get file row pointer and initialize return variable.
列表1.获得文件行指针并初始化返回变量。
You can think of userdata as an array of bytes — bytes that might represent a pointer, a structure, or a file in the host application.
我们可以认为userdata就是一个字节数组——字节可以表示指针、结构或宿主应用程序中的文件。
After the fork, the parent and child have copies of all open file descriptors and data values, so the pointer works for both.
执行fork之后,父进程和子进程获得打开的所有文件描述符和数据值的拷贝,所以指针对于它们都是有效的。
The file's directory entry contains a hard link (or pointer) to the inode for the file, so every entry listed should have at least one hard link.
文件的目录条目包含到文件的inode 的硬链接(或指针),因此列出的每个条目都应该至少拥有一个硬链接。
Listing 8 lists the code that was modified in the source of the jfs_mount.c file to create a segmentation fault at line 109 by creating a null pointer exception.
清单8列出了jfs_mount . c文件的源代码中被修改过的代码,我们在代码中创建了一个空指针异常,从而使代码在第109行产生段错误。
A directory entry contains a name for a file or directory and a pointer to the inode where the information about the file or directory is stored.
一个目录条目包含一个文件名或目录名,以及存储有文件或目录相关信息的inode的指针。
Increments the row pointer for the next virtual user or, if the end of the file is reached, go back to the beginning of the file and reset the pointer to 1.
为下一位虚拟用户增加行指针或者,如果已经到达文件的末尾,就回到这个文件的起始,使指针重新回到1。
One pointer for the XML file: the id specified in the style tag is used to match the style attribute in the bind tag.
有一个指向XML文件的指针:style标签中指定的id用来匹配bind标签中的style属性。
The file txtgroup.c, which is included in the ZIP file attached at the end of this article, provides an example of how you can populate the functions pointer for the group plug-in library.
本文后面附带的zip文件中的txtgroup . c文件提供了一个例子,演示如何填充组插件库的函数指针。
You open the file by calling the in function of the DL_Dxf object and passing a pointer to a class that inherits from the DL_CreationAdapter abstract class.
通过调用 DL_Dxf对象的in函数并将指针传递给一个继承 DL_CreationAdapter抽象类来打开此文件。
For simplicity, you should have the row pointer always wrap back to the beginning if the end of the file is reached.
为了简单起见,如果已经到达了文件的末端,您应该使这个行指针回到开始。
应用推荐