NbtReader.fromFile constructor

NbtReader.fromFile(
  1. String path
)

Reads the file at path in bytes and constructs a new reader with that data. This method only works on native platforms, so every platform that includes support for 'dart:io'.

Throws a FileSystemException if the file could not be found.

Implementation

factory NbtReader.fromFile(String path) => NbtReader(fromFile(path));