q5play
    Preparing search index...

    Function loadText

    • 🛠 Loads a text file from the specified url.

      Using await to get the loaded text as a string is recommended.

      Parameters

      • url: string

        text file

      Returns object & PromiseLike<string>

      an object containing the loaded text in the property obj.text or use await to get the text string directly