-
Notifications
You must be signed in to change notification settings - Fork 0
ESE_IO Class
NarcoMarshDev edited this page Oct 22, 2022
·
2 revisions
Category: Static
Path: scripts/Game/ESE_IO.c
Class for file handling and other related methods.
Todo
Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | Return⠀⠀⠀⠀⠀ | Description |
---|---|---|
ReadFileAsArray (string path, inout array<string> arr, int len) | int (inout) | Opens file at given path and reads contents to the passed array. Returns length of read data. |
ReadSpaceDelimitedFileAsArray (string path, inout array<string> arr) | int (inout) | Opens file at given path and reads contents to the passed array. File entries are seperated by line and by spaces between strings in file. |
ReadFileAsString (string path) | string | Opens file at given path and returns whole file contents as one string. WIP AND CURRENTLY DISABLED BY DEFAULT |
GenerateGUID () | string | Generates a sortable random string id built out of year + month + day + hour + min + sec + long random number . Useful for unique client tokens. Credit to Armazac for this code. |