之后,脚本读取文件并把文件的大块内容发送到解析器。
After that, the script reads in the file and sends off chunks of the file to the parser.
读取文件可以证明没有把整数写入文件,相反,写的是字符值。
Reading the file demonstrates that you clearly didn't write the integers to the file; instead, you wrote their character values.
继续读取文件,直至到达文件末尾,边读取边打印每行。
Keep reading the file until you are at the end, printing each line as you read it.
在清单1中回跳几行,您就到达了文件处理的核心:实际读取文件。
Jumping back a few lines in Listing 1, you get to the heart of file processing: actually reading the file.
适配器在读取文件时会将其视为多个具有指定大小的数据块(事件)。
The adapter reads the file as chunks (events) of that byte size.
类型子句也指定了传入键和值,这对于读取文件分别是字节数和文本行数。
The type clause also delineates the incoming key and value, which in the case of reading a file are the byte count and the line of text, respectively.
适当地设置权限使hacluster守护程序可以读取文件也绝对重要。
It is absolutely vital that you set the permissions appropriately such that the hacluster daemon can read the file.
理解内存转储文件中的数据(识别格式、解析和读取文件)的步骤相对比较简单
The steps to understanding the data in a memory dump file (identifying the format, parsing, and reading the file) are relatively simple
打开文件和读取文件内容一次完成,生成的效果与第一个显式示例相同。
You open the file and read its contents all at once, producing the same result as the first, explicit example.
InputSource控制语法分析器如何读取文件,包括XML文档和实体。
InputSource controls how the parser reads files, including XML documents and entities.
在此示例中,从常规文件系统读取文件,因此将使用fsdirectory类。
In this example, the files are being read from a regular file system and so it USES the FSDirectory class.
和读取文件的任何软件一样,解析器也是围绕着读循环(读入文件的循环)创建的。
Like any software reading a file, the parser is built around a reading loop: a loop that progresses through the file.
对于BAR文件中的每个文件,该方法获取文件名并建立一个流读取文件内容。
For every file contained in the BAR file, it obtains the file name and opens a stream for the file content.
这个方法用来读取文件的每一个字符,一直读到文件末尾(以-1为标志)。
This method is used to read every character until the end of the file (marked by a -1).
DMA模块从磁盘中读取文件内容,并将其存储在内核空间的缓冲区内,完成了第1次复制。
The first copy is performed by the DMA engine, which reads file contents from the disk and stores them into a kernel address space buffer.
无论怎样读取文件,您都可以使用fpassthru 将其余数据转储到标准输出通道。
No matter how you've been reading your file, you can dump the rest of your data to your standard output channel using fpassthru.
一个应用程序使用系统调用打开和读取文件、创建和销毁进程,并与操作系统其余进程进行交互。
An application USES system calls to open and read from files, create and destroy processes, and interact with the rest of the operating system.
测试从在getMessagesDirectory 中指定的文件夹中读取文件。
The test reads the files from the folder specified in getMessagesDirectory.
若要使用这个库,可以打开此文档并读取文件,然后依次循环主控制块内的每个块,如清单1所示。
You use the library by opening the document and reading the file, followed by looping through each block in the main control block, as shown in Listing 1.
如果您的应用程序将一些内容写到一个文件,很可能某个用户或应用程序会采用其他语言来读取文件。
If your application is writing something to a file, it's likely that at some point either the user will read it, or some application in another language will read it.
人们需要反馈。计算机本身没必要告诉人类他正在读取文件。但人类需要知道现在计算机正干些什么。
People need feedback. The computer doesn't need to tell the human that it is loading the file. The human needs to know what is going on.
相反,Spring读取文件,获得脚本源代码并在运行时编译它们,使它们可用于应用程序上下文。
Instead, Spring reads the files to obtain the script source code, compiles them at run time, and makes them available in the application context.
而读取文件的代码应该检查这个版本号,以保证版本号小于或者等于当前版本,否则就会抛出一个异常。
And the code that reads the file should check to make sure that the version number is less than or equal to its current version and throw an exception if it's not.
当应用程序打开一个文件句柄读取文件以处理文档时,它通常读取文件后就不再需要文件句柄了。
When an application opens a file handle to read in so it can process a document, it typically reads from the file and then has no further need for the file handle.
在这个文件轮询器配置中,我们仅仅从文件系统读取文件,然后把收到的文件发送给邮件服务端点。
In the file poller implementation we just read a file from the file system and send the received file to the Mail service endpoint.
在内存中存储某个对象的Web服务器可能会比其他需要从磁盘读取文件的Web服务器更快地响应一个请求。
A web server that is storing an object in memory will likely respond to a request faster than a web server that needs to read the file from disk.
或者您也可以读取文件中的内容,并对它进行转换操作,然后再将结果文档存储到DOM Document中。
Or you can read in a file, transform it, and put the resulting document into a DOM document.
该脚本在步骤1读取文件的内容,在步骤2扫描文本寻找根元素并去掉开始部分,以便让人第一眼就能看到根元素。
This script reads the file contents in step 1, and, in step 2 scans the text for the root element and chops off the beginning so that the first thing seen is the start of the root element.
但是,通常情况下,想要同时读取文件和写入文件,所以这个示例的下一部分用'r + '模式重新打开文件。
Often, however, you'll want to read to and write from a file at the same time, so the next part of this example reopens the file using the 'r +' mode.
但是,通常情况下,想要同时读取文件和写入文件,所以这个示例的下一部分用'r + '模式重新打开文件。
Often, however, you'll want to read to and write from a file at the same time, so the next part of this example reopens the file using the 'r +' mode.
应用推荐