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:
,ExtensionFilter:
?)
(Files: {
}?,Success:
)
1
,ExtensionFilter:
?)
(Files: {
}?,Success:
) _io.List(Path: string, ExtensionFilter: string?) -> Files: {string}?, Success: boolean
DeleteDir(Path:
)
(Success:
)
2
)
(Success:
) _io.DeleteDir(Path: string) -> Success: boolean
CreateDir(Path:
)
(Success:
)
3
)
(Success:
) -- It also support directory/tree/creation
_io.CreateDir(Path: string) -> Success: boolean
Exists(Path:
)
(Success:
)
4
)
(Success:
) -- Test both foders and files
_io.Exists(Path: string) -> Success: boolean
Delete(Path:
)
(Success:
)
5
)
(Success:
) _io.Delete(Path: string) -> Success: boolean
Read(Path:
)
(Text:
?,Success:
)
6
)
(Text:
?,Success:
) _io.Read(Path: string) -> Text: string?, Success: boolean
Write(Path:
,Content:
)
(Success:
)
7
,Content:
)
(Success:
) _io.Write(Path: string, Content: string) -> Success: boolean