class sys.io.File

API for reading and writing to files.

See sys.FileSystem for the complementary file system API.

Class Fields

static function getBytes(path:String): Bytes

Retrieves the binary content of the file specified by path.

If the file does not exist or can not be read, an exception is thrown.

sys.FileSystem.exists can be used to check for existence.

If path is null, the result is unspecified.