Find Lines With Keyword

Searches for lines in the file or text with a single keyword.


⬅️INPUT

Parameter

Type

Required

Description

FilePath

String

✅Yes*

Path of the file to search

Text

String

✅Yes*

Text content to search

Keyword

String

✅Yes

Keyword to search for

CaseSensitive

Boolean

❌No

Case sensitivity

Encoding

String

❌No

File encoding

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


➡️OUTPUT

Name

Data Type

Description

IsFindLinesWithKeywordSuccessful

Boolean

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

FindLinesWithKeywordMessage

String

Returns the error information received if the operation fails.

FindLinesWithKeywordResult

List<PAWKeywordResult>

List containing the found lines and their numbers.

FindLinesWithKeywordResultCount

Int32

Count of the searched word.


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Throw exception on error (default: No)