Wrapper for the file operations.
LargeTextFile
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| FixEscapes | 1 | 函数返回结果文件的临时文件的文件路径 |
| IteratesTableData | 1 | Iterates read all lines in a very large text file, using for loading a very large size csv/tsv file |
| IteratesStream | 1 | Populate all lines of the text data from current stream reader object |
| Peeks | 1 | 当一个文件非常大以致无法使用任何现有的文本编辑器查看的时候,可以使用本方法查看其中的一部分数据 |
| Tails | 2 | Peek the tails of a large text file.(尝试查看大文件的尾部的数据) |
| GetLastLine | 1 | Get last line of the target text file. |
| Merge | 1 | Please make sure all of the file in the target directory is text file not binary file. |
03 Members
函数返回结果文件的临时文件的文件路径
| Name | Type | Description |
|---|---|---|
path | String | - |
escape | Func(Of String, String) | 这个函数输入文本文件之中的一行数据,然后处理完转义之后将改行的数据返回 |
Iterates read all lines in a very large text file, using for loading a very large size csv/tsv file
A helper function for read the csv/tsv table file
| Name | Type | Description |
|---|---|---|
path | String | file path |
title | String | The header line of this large size csv/tsv file. |
skip | Int32 | Skip n lines, then start to populate data lines. |
encoding | Encodings | Text file encoding. |
StreamReader)Populate all lines of the text data from current stream reader object
| Name | Type | Description |
|---|---|---|
s | StreamReader | The stream connection to the target text file data resource. |
Try to pull all text lines from the given text stream data
String, Int32)当一个文件非常大以致无法使用任何现有的文本编辑器查看的时候,可以使用本方法查看其中的一部分数据
| Name | Type | Description |
|---|---|---|
length | String | 字节长度 |
String, Int32, Encoding)Peek the tails of a large text file.(尝试查看大文件的尾部的数据)
请注意,如果字符编码是不定长的,则返回的字符串可能会出现乱码的问题
| Name | Type | Description |
|---|---|---|
path | String | If the file is not exists, then this function will returns nothing. |
length | Int32 | Peeks of the number of characters. The number of the characters, not the bytes value. (字符的数目) |
encoding | Encoding | Default value is TextEncodings.DefaultEncoding |
Stream, Int32, Encoding)Peek the tails of a large text file.(尝试查看大文件的尾部的数据)
请注意,如果字符编码是不定长的,则返回的字符串可能会出现乱码的问题
| Name | Type | Description |
|---|---|---|
length | Stream | Peeks of the number of characters. The number of the characters, not the bytes value. (字符的数目) |
encoding | Int32 | Default value is TextEncodings.DefaultEncoding |
String, Encoding, String)Get last line of the target text file.
| Name | Type | Description |
|---|---|---|
path$ | String | - |
encoding | Encoding | - |
newLine$ | String | - |
String)Please make sure all of the file in the target directory is text file not binary file.
| Name | Type | Description |
|---|---|---|
dir$ | String | - |