Reads a Text File Line by Line. Return an array of strings.
Namespace: LLCryptoLib.UtilsAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public string[] ReadFileLines(
string absolutePath,
Encoding enc
) |
Visual Basic |
---|
Public Function ReadFileLines ( _
absolutePath As String, _
enc As Encoding _
) As String() |
Visual C++ |
---|
public:
array<String^>^ ReadFileLines(
String^ absolutePath,
Encoding^ enc
) |
Parameters
- absolutePath
- Type: System..::..String
Absolute Path of file to read from
- enc
- Type: System.Text..::..Encoding
Encoding of the text file. Use Encoding static members.
Return Value
Text Contents of the file (one string per line)
See Also