CommonEngineReadFileT Method (String, Int32) |
Used to read a file without instantiating the engine.
This method has limited features. We recommend using the non static methods.
Namespace:
FileHelpers
Assembly:
FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntaxpublic static T[] ReadFile<T>(
string fileName,
int maxRecords
)
where T : class
Public Shared Function ReadFile(Of T As Class) (
fileName As String,
maxRecords As Integer
) As T()
Parameters
- fileName
- Type: SystemString
The file name - maxRecords
- Type: SystemInt32
The max number of records to read. Int32.MaxValue or -1 to read all records.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:FileHelpers.CommonEngine.ReadFile``1(System.String,System.Int32)"]
Return Value
Type:
TThe read records.
See Also