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 like this: IO.

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 → buffer

Parameters: path [ string ]

Read the buffer file from path

ReadTextFromPath → string

Parameters: path [ string ]

Read the text file data from path

WriteBytesToPath → nil

Parameters

path [ string ]

bytes [ buffer ]

Write buffer data to file in the project

WriteTextToPath → nil

Parameters

path [ string ]

txt [ string ]

Write the text file data to path

ListProjectFiles → { string }

Parameters: ``

List all files in the project

ReadBytesFromID → buffer

Parameters: id [ string ]

Read the file data from linked ID

GetPathFromID → string

Parameters: indexID [ string ]

Get the file path from linked ID