Get Line Count

Returns the total number of lines in the file or text content.


⬅️INPUT

Parameter

Type

Required

Description

FilePath

String

✅Yes*

Path of the file to count

Text

String

✅Yes*

Text content to count

ThrowException

Boolean

❌No

Throw exception on error

*FilePath and Text are mutually exclusive (OverloadGroup) parameters. One of them is used.


➡️OUTPUT

Parameter

Type

Description

IsGetLineCountSuccessful

Boolean

Returns "True" if the operation succeeds, "False" if it fails.

GetLineCountMessage

String

Returns the error information received if the operation fails.

GetLineCountResult

Int32

Total number of lines.


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".