Function readFileSync

  • Synchronously returns an ArrayBuffer containing the contents of the file at path.

    Parameters

    Returns null | ArrayBuffer

    Example

    const buffer = Switch.readFileSync('sdmc:/switch/awesome-app/state.json');
    const appState = JSON.parse(new TextDecoder().decode(buffer));

Generated using TypeDoc