Skip to main content

IO

Module: _io

  • Files are located in the Saved folder of the game. Path should be relative only
  • Each script has it's own files sandbox, can't read or write anywhere else
List(Path: string,ExtensionFilter: optional string?)return(Files: {optional array string}?,Success: boolean)
_io.List(Path: string, ExtensionFilter: string?) -> Files: {string}?, Success: boolean
1
DeleteDir(Path: string)return(Success: boolean)
_io.DeleteDir(Path: string) -> Success: boolean
2
CreateDir(Path: string)return(Success: boolean)
-- It also support directory/tree/creation
_io.CreateDir(Path: string) -> Success: boolean
3
Exists(Path: string)return(Success: boolean)
-- Test both foders and files
_io.Exists(Path: string) -> Success: boolean
4
Delete(Path: string)return(Success: boolean)
_io.Delete(Path: string) -> Success: boolean
5
Read(Path: string)return(Text: optional string?,Success: boolean)
_io.Read(Path: string) -> Text: string?, Success: boolean
6
Write(Path: string,Content: string)return(Success: boolean)
_io.Write(Path: string, Content: string) -> Success: boolean
7