So, trying to read a file could cause errors.
因此,试图读取一个文件可能会出错。
To read a file, the file must first be opened.
要读取一个文件,文件必须首先被打开。
How to read a file AND make a query at each line?
如何读取一个文件,查询每一行吗?
We saw how to open and read a file in Section 9.1.
在9.1的时候我们就看到过如何打开和读取一个文件了。
Notice that I have used a little cryptic way to read a file.
请注意,我是用一些神秘的方式读取文件。
Of course, the above functions only allow you to read a file in order.
当然,以上函数只允许顺序读取文件。
When a program tries to read a file, small portions of that file are read from several disks in parallel.
当一个程序试图读取某个文件时,可以并行地从多块磁盘上分别读取这个文件的某些部分。
Instead of IO, where you could read a file and write a file, ABC's designers decided to just have global variables in the program.
ABC的设计者放弃了用来读写文件的IO的方法,他们转而在程序里使用一些全局变量。
In the file poller implementation we just read a file from the file system and send the received file to the Mail service endpoint.
在这个文件轮询器配置中,我们仅仅从文件系统读取文件,然后把收到的文件发送给邮件服务端点。
Let's take a look at how our enhanced EcmaScript program, DBScriptFlex.es, will read a file called dbinit.ini. Entries in the dbinit.ini.
让我们来看一看增强的EcmaScript程序,DBScriptFlex. es是怎样读入一个叫做dbinit . ini的文件的。
You will use the RFHUTIL utility program to read a file from a text file and send the data as a message to the EXPORTQ local queue managed by the queue manager QMGR900.
您将使用RFHUTIL实用程序从文本文件中读取文件,并将数据作为消息发送给由队列管理器QMGR900管理的EXPORTQ本地队列。
XML::Simple generally has sensible defaults, so that for example if you specify no input file name, a Perl program named part1.pl (as in Listing 4) will read a file called part1.xml.
Simple有一些合理的默认设置,例如如果没有指定输入文件名,那么Perl程序part1.pl(清单4)将读取文件part1.xml。
As we've explained at the beginning of this section we want to read a file from the file system and use ServiceMix to send an E-mail message using the file contents to a certain E-mail address.
我们在本节一开始就已经说过,我们要从文件系统中读取一个文件,然后使用ServiceMix把包含文件内容的电子邮件消息发送到某个电子邮件地址。
How can I read an Excel file on a computer that only has Word installed?
我怎么在只装了文字处理软件的电脑上读取表格文件呢?
If a client receives a read delegation for a file, then all writes to that file for the length of the delegation are not allowed for any other client.
如果一个客户机得到了一个文件的读授权,那么在这个授权期间,任何其它客户机都不允许写这个文件。
A LISP program can read LISP statements from a text file and execute them as if they were part of the original program.
LISP程序可以从文本文件中读取语句,并且好像它们是原始程序一部分一样执行它们。
For instance, the -f switch commonly used to tell a program to read a configuration file complicates the configuration because the file may override or supplement options given on the command line.
例如,- f开关通常用于告诉程序读取一个配置文件,这将因为该文件可能覆盖或者补充命令行上给出的选项而使处理变复杂。
Programmers don't usually have to test whether the user running the program is entitled to read a data file or set the system time.
程序员通常不必测试运行程序的用户是否有权读取数据文件和设置系统时间。
For instance, it can be a string literal in the program or read from a local file.
例如,可以是程序中的一串文字或从本地文件读取。
By using compound procedures, clients can read data from a file in one request by combining LOOKUP, OPEN, and read operations in a single RPC request.
通过使用复合过程,客户机可以将LOOKUP、OPEN和READ操作组合到一个RPC请求中,这样客户机只需一次请求就可以从文件中读取数据。
If you have an older version of FreeBSD, you can still use GDB -k to read a core dump file.
如果您有早期版本的FreeBSD,那么仍然可以使用gdb- k来读取核心转储文件。
The commands to be run are read from a file specified with the -f option, or from stdin if -f is not used.
要运行的命令是从 -f选项指定的文件读取的,如果没有使用 -f,那么从stdin 读取。
At run time, the LoginContext will read a configuration file to determine which login module (s) should be used to authenticate users accessing a particular application.
在运行时,LoginContext将读取配置文件以确定应使用哪一个(一些)登录模块对访问特定应用程序的用户进行认证。
Although UNIX shells are highly specialized and generally used interactively using the keyboard, a shell such as bash can also read input from a file.
尽管UNIXshell具有较高的专用性,且通常使用键盘进行交互,但某些shell如bash等也能从文件读取输入内容。
In this example, the files are being read from a regular file system and so it USES the FSDirectory class.
在此示例中,从常规文件系统读取文件,因此将使用fsdirectory类。
If you now try to read a configuration file which is missing a required value, XJConf will throw a MissingAttributeException (Figure 1).
如果您现在尝试读取一个缺少强制值的配置文件,XJConf将抛出MissingAttributeException异常(参见图1)。
the queries comprising the workload are read from a text file 'my_queries.sql'
组成工作负载的查询从文本文件 'my_queries.sql'读取
On my ThinkPad T60p with a 7200RPM disk drive, it takes 24 seconds to read a 7MB file.
我的ThinkPadT60p 笔记本硬盘速度是 7200RPM,它读取一个7MB 的文件需要 用24秒。
Andrew repeated this test, but tried to read a 16mb file from the test filesystem (rather than a different filesystem), and he got identical results.
Andrew重复这个测试,但尝试从测试文件系统(而不是从其它文件系统)读取16Mb的文件,获得的结果是相同的。
For example, one class may open a stream and pass it to another class to read information from a file.
例如,一个类可能会打开一个流,并将其传递给另一个类以阅读来自文件的信息。
应用推荐