Skip to content

IOService

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

Inherits: Instance

Methods

ReadBytesFromPath(path: string) → buffer

Read the buffer file from path

ReadTextFromPath(path: string) → string

Read the text file data from path

WriteBytesToPath(path: string, bytes: buffer) → nil

Write buffer data to file in the project

WriteTextToPath(path: string, txt: string) → nil

Write the text file data to path

ListProjectFiles() → { string }

List all files in the project

ReadBytesFromID(id: string) → buffer

Read the file data from linked ID

GetPathFromID(indexID: string) → string

Get the file path from linked ID