Add Line
Adds the given line at the desired line number. If the "Line" input is left empty, adds an empty line at the desired line number.
⬅️INPUT
Parameter | Type | Required | Description |
|---|---|---|---|
|
| ✅Yes* | Path of the file to modify |
|
| ✅Yes* | Text content to modify |
|
| ✅Yes | Content of the line to add |
|
| ✅Yes | Line number to insert at |
|
| ❌No | File encoding (UTF-8 etc.) |
*FilePath and Text are mutually exclusive (OverloadGroup) parameters. One of them is used.
➡️OUTPUT
Parameter | Type | Description |
|---|---|---|
|
| Returns "True" if the operation succeeds, "False" if it fails. |
|
| Returns the error information received if the operation fails. |
|
| The resulting new text. |
⬇️MISC
Parameter | Type | Default | Description |
|---|---|---|---|
|
| ❌No | Specifies whether an exception is thrown when the operation fails. The default value is "No". |