Function writeFileSync

  • Synchronously writes the contents of data to the file at path.

    const appStateJson = JSON.stringify(appState);
    Switch.writeFileSync('sdmc:/switch/awesome-app/state.json', appStateJson);

    Parameters

    • path: PathLike
    • data: string | BufferSource

    Returns void

Generated using TypeDoc