IFileHelperEngineT Interface |
Namespace: FileHelpers
The IFileHelperEngineT type exposes the following members.
Name | Description | |
---|---|---|
![]() | Encoding |
The encoding to Read and Write the streams. Default is the system's
current ANSI code page.
|
![]() | ErrorManager | This is a common class that manage the errors of the library. |
![]() | ErrorMode |
Indicates the behavior of the engine when it found an error.
(shortcut for ErrorManager.ErrorMode)
|
![]() | FooterText | The read footer in the last read operation. If any. |
![]() | HeaderText | The read header in the last read operation. If any. |
![]() | LineNumber | The current line number. |
![]() | NewLineForWrite | Newline char or string to be used when engine writes records. |
![]() | Options |
Allows to change some record layout options at runtime
|
![]() | RecordType | Returns the type of records handled by this engine. |
![]() | TotalRecords | The total numbers of records in the last read/written file
(only works with whole read/write). |
Name | Description | |
---|---|---|
![]() ![]() | AppendToFile(String, IEnumerableT) |
Append an array of records to the specified file.
|
![]() ![]() | AppendToFile(String, T) |
Append a record to the specified file.
|
![]() ![]() | ReadFile(String) |
Read a file and return an array of the contained records.
|
![]() ![]() | ReadFile(String, Int32) |
Read a file and return an array of the contained records.
|
![]() | ReadFileAsDT(String) |
Read the records of the file and fill a DataTable with them
|
![]() | ReadFileAsDT(String, Int32) |
Read the records of the file and fill a DataTable with them
|
![]() ![]() | ReadStream(TextReader) |
Read a Stream and return an array of the contained records.
|
![]() ![]() | ReadStream(TextReader, Int32) |
Read a Stream and return an array of the contained records.
|
![]() | ReadStreamAsDT(TextReader) |
Read the records of the stream and fill a DataTable with them
|
![]() | ReadStreamAsDT(TextReader, Int32) |
Read the records of the stream and fill a DataTable with them
|
![]() | ReadString(String) |
Read a String and return an array of the contained records.
|
![]() | ReadString(String, Int32) |
Read a String and return an array of the contained records.
|
![]() | ReadStringAsDT(String) |
Read the records of a string and fill a DataTable with them.
|
![]() | ReadStringAsDT(String, Int32) |
Read the records of a string and fill a DataTable with them.
|
![]() ![]() | WriteFile(String, IEnumerableT) |
Write an array of records to the specified file.
|
![]() ![]() | WriteFile(String, IEnumerableT, Int32) |
Write the specified number of records from the array to a file.
|
![]() ![]() | WriteStream(TextWriter, IEnumerableT) |
Write an array of records to the specified Stream.
|
![]() ![]() | WriteStream(TextWriter, IEnumerableT, Int32) |
Write the specified number of records in the array to the Stream.
|
![]() | WriteString(IEnumerableT) |
Write an array of records to an String and return it.
|
![]() | WriteString(IEnumerableT, Int32) |
Write an array of records to an String and return it.
|
Name | Description | |
---|---|---|
![]() | AfterReadRecord | Called in read operations just after the record was created from a record string. |
![]() | AfterWriteRecord | Called in write operations just after the record was converted to a string. |
![]() | BeforeReadRecord | Called in read operations just before the record string is translated to a record. |
![]() | BeforeWriteRecord | Called in write operations just before the record is converted to a string to write it. |
![]() | Progress | Called to notify progress. |