File

File is a list of functions that can be used to retrieve some information about files.

Functions

Name

Description

readAscii

Reads ASCII data from a file.

readUtf8

Reads UTF-8 data from a file.

readBinary

Reads binary data from a file.

writeAscii

Writes ASCII data to a file.

writeBinary

Writes binary data to a file.

filename

Returns the filename without the extension.

extension

Returns the file’s extension.

directory

Returns the directory the file is into.