Skip to content

IOService

Inherits Instance

Class for interacting with IO in project, only usable with scripts with the respective permission.

Static Class

This object is a static class. It can be accessed by using its name as a keyword.

Additionally, it cannot be created in the creator menu or with Instance.New().

Not newable

This object cannot be created by scripts using Instance.New().

Methods

ReadBytesFromPath → string

Parameters: path [ string ]

Read the file data from path

WriteBytesToPath → nil

Parameters

path [ string ]

bytes [ string ]

Write data to file in the project

ListProjectFiles → table

Parameters: ``

List all files in the project

ReadBytesFromID → string

Parameters: id [ string ]

Read the file data from linked ID

GetPathFromID → string

Parameters: indexID [ string ]

Get the file path from linked ID