MotorXP-AFM Scripting API
    Preparing search index...

    Function writeFile

    • writeFile() writes to a file.

      Parameters

      • path: string

        File path, absolute or relative to <path_MotorXP-AFM>/bin/assets/scripts.

      • content: string

        Contents to write to the file.

      • Optionalappend: boolean

        If true, appends data to the file. If false, clears the file before writing.

      Returns boolean

      True if writing succeeded. On error, returns false and prints an error message to the console.