Nucleus handler tools › Docs › Context › ReplaceLinesInTextFile

Context.ReplaceLinesInTextFile

Open in the workbench (search, and try it in a handler)

Context.ReplaceLinesInTextFile(
  path: string | number | boolean,
  newLines: string[]
): boolean
Context.ReplaceLinesInTextFile(
  path: string | number | boolean,
  newLines: string[],
  encoder: string | number | boolean
): boolean

Replace an entire line; for string array use the format: "lineNum|newValue", the | is required.

✎ Parameters: AI-written from the Nucleus source.

Category: Files

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop