Class TextFileLoader

Hierarchy

  • TextFileLoader

Constructors

Methods

Constructors

Methods

  • Loads a text file located at the specified filename asynchronously

    Returns

    The TextFile object that will contain the loaded file's data. Note, it will only contain the data AFTER the asynchronous loading is complete.

    Parameters

    • filename: string

      The path to the text file to be loaded

    • callback: null | ((loadedFile: TextFile) => void) = null

      An optional callback function to be invoked when the file is loaded

    Returns TextFile

Generated using TypeDoc