folderfile

Functions for reading from and writing to files in the photon data folder.

file write(filepath, data, mode) -> void

Name
Type
Description

filepath

string

The filepath name

data

string

The data to the file.

mode

string

-> optional "binary"

file exists(filepath) -> bool

Returns true if the filepath exists.

file overwrite(filepath, data, mode) -> void

Name
Type
Description

filepath

string

The filepath name

data

string

The data to the file.

mode

string

-> optional "binary"

file read(filepath) -> string

Name
Type
Description

filepath

string

The filepath name.

  • This will only read/write in the photon data folder.

Example

Last updated