Synchronously returns an ArrayBuffer containing the contents of the file at path.
ArrayBuffer
path
const buffer = Switch.readFileSync('sdmc:/switch/awesome-app/state.json');const appState = JSON.parse(new TextDecoder().decode(buffer)); Copy
const buffer = Switch.readFileSync('sdmc:/switch/awesome-app/state.json');const appState = JSON.parse(new TextDecoder().decode(buffer));
Generated using TypeDoc
Synchronously returns an
ArrayBuffer
containing the contents of the file atpath
.