# Find Lines With Keyword

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


---

### :arrow_left:**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.


---

### :arrow_right:**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`](/doc/pawkeywordresult-1jYsvghWeq)`>` | List containing the found lines and their numbers. |
| `FindLinesWithKeywordResultCount` | `Int32`   | Count of the searched word. |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error (default: No) |