UtilTextFilesCountAllLines Method
Gets the total amount of lines of the source textfile.
Namespace: DevCase.Core.DataProcessing.TextFilesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static int CountAllLines(
string sourceFilepath,
Encoding enc = null
)
Public Shared Function CountAllLines (
sourceFilepath As String,
Optional enc As Encoding = Nothing
) As Integer
Dim sourceFilepath As String
Dim enc As Encoding
Dim returnValue As Integer
returnValue = UtilTextFiles.CountAllLines(sourceFilepath,
enc)
public:
static int CountAllLines(
String^ sourceFilepath,
Encoding^ enc = nullptr
)
static member CountAllLines :
sourceFilepath : string *
?enc : Encoding
(* Defaults:
let _enc = defaultArg enc null
*)
-> int
No code example is currently available or this language may not be supported.
- sourceFilepath String
-
The source textfile path.
- enc Encoding (Optional)
-
The file encoding used to read the textfile.
Int32
A value that contains the total amount of lines of the source textfile.
This is a code example.
No code example is currently available or this language may not be supported.
Dim lineCount As Integer = CountAllLines("C:\file.txt", Encoding.Default)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.