Adding a spool file object set.
添加spool文件对象集。
And, what is this file object?
而且,这个file对象是什么?
Adding an IFS Stream file object set.
添加ifs流文件对象集。
A file object pointing to the schema file.
指向模式文件的File对象。
Add spool file object set into the collection.
将spool文件对象添加到集合中。
Add IFS stream file object set into the collection.
将ifs流文件对象集添加到集合中。
We first create a file object using the SQLcmds property value.
我们首先使用SQLcmds 属性值来创建一个文件对象。
A very simplified view of the file object is provided in Figure 6.
图6提供了文件对象的简化视图。
To write data to a file, you have to first create the file object.
要把数据写入文件,必须先创建file对象。
The file object refers to a dentry object, which refers to an inode.
file对象引用dentry对象,后者引用inode。
As the help facility indicates, working with a file object is simple.
正如帮助工具指出的,使用file对象很简单。
In Listing 3, you instantiated a file object for a file that didn't exist.
在清单3中,是为一个不存在的文件实例化了File对象。
Now, notice the last line in Listing 1, which calls a close method on the file object.
现在,请注意清单1中的最后一行,它调用file对象的close方法。
First, it creates a file object from the build file and then creates a new Project object.
首先,它从构建文件创建一个文件对象,然后创建一个新的Project对象。
At the top is the open file object, which is referenced by a process's file descriptor list.
在顶层是打开的file对象,它由进程的文件描述符列表引用。
The file object is the basic mechanism by which you interact with files on your computer.
file是与计算机上的文件进行交互的基本机制。
If you need to append data to a file, you should use the append mode when creating the file object.
如果需要向文件中添加数据,应当在创建file对象时,使用添加模式。
Overall, the process is simple: Create an appropriate file object, then read or write as necessary.
总体来说,过程很简单:创建合适的file对象,然后按照需要读取和写入。
The solution to this problem is also easy: Tell the file object to go back to the beginning of the file.
这个问题的解决方案也很简单:让file对象返回文件的开头。
The simplest technique for learning more about the file object is to ask for help, as shown in Listing 2.
学习file对象的最简单方法就是阅读帮助,如清单 2 所示。
As shown in Listing 6, however, writing is easy once you know the basics of working with the file object.
但是如清单6所示,一旦了解了使用file对象的基础知识,写入也很容易。
It is not a problem to have both spool file object sets, and IFS stream file object sets in the same collection.
一个collection中可以同时拥有spool文件对象集和ifs流文件对象集。
You can easily do so in Python by appending 'b' to the file mode when you create the file object, as shown in Listing 7.
在创建file对象时,通过把'b'添加到文件模式中,可以很容易地用 Python 处理二进制数据,如清单7 所示。
This section explores the superblock, the index node (or inode), the directory entry (or dentry), and finally, the file object.
这个小节探索了超块(superblock)、索引节点(或inode)、目录条目(或dentry)和文件对象。
The read method takes two parameters: the class of the POJO and the file object that represents the XML file containing the data.
read方法有两个参数:POJO的类和File对象,后者代表包含数据的XML文件。
You can use the file object to read data, to write data, to append data to a file, and to work with either binary or textual data.
可以用file对象读取数据、写入数据或把数据添加到文件,以及处理二进制或文本数据。
In this case, you create an implicit file object, and Python does the rest, allowing you to iterate over all the lines in the file.
在这个示例中,创建隐式file对象,然后Python做余下的工作,允许对文件中的全部行进行迭代。
The second for loop simplifies this process a little by using an implicit variable (that is, one that isn't explicitly created) for the file object.
第二个for循环通过使用file对象的隐式变量(也就是说,变量不是显式创建的),对这个过程稍做了点儿简化。
You may notice that the file name of the transferred file can be obtained and, in this case, the file name is used when instantiating the file object.
您可能会注意到可以得到传输的文件的名称,在这个示例中,在实例化File对象时使用到了文件名称。
Inside the _setstate_ method we are able to recreate the file object based on the name and position information we pickled, and assign the file object to the instance's logfile attribute.
在_ setstate _方法内,可以根据经过pickle的名称和位置信息来重建文件对象,并将该文件对象分配给这个实例的logfile属性。
应用推荐