UtilTextFilesCountNonBlanktLines Method
Gets the total amount of non-blank 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 CountNonBlanktLines(
string sourceFilepath,
Encoding enc = null
)
Public Shared Function CountNonBlanktLines (
sourceFilepath As String,
Optional enc As Encoding = Nothing
) As Integer
Dim sourceFilepath As String
Dim enc As Encoding
Dim returnValue As Integer
returnValue = UtilTextFiles.CountNonBlanktLines(sourceFilepath,
enc)
public:
static int CountNonBlanktLines(
String^ sourceFilepath,
Encoding^ enc = nullptr
)
static member CountNonBlanktLines :
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 non-blank 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 = CountNonBlanktLines("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.