FileMaker Data API Tools API - v1.8.0
    Preparing search index...

    Function readExistingFile

    • Reads an existing file as strict UTF-8 (a BOM is kept as part of the text). Anything else, including UTF-16 and Latin-1 with accented letters, is refused: rewriting it as UTF-8 would corrupt the user's file. Returns undefined when there is no file.

      Parameters

      • targetPath: string

      Returns Promise<string | undefined>