Under Construction
Filestreams allow CRUD (Create, Read, Update, Delete) operations on user defined files during gameplay. You can sue these to build databases and add persistence features to games.
openfilestream
int openfilestream(char filename, int (optional) save);
Opens a file and loads its content into memory for reading. Returns index of opened filestream or -1 on failure.
char filename
– Path and filename to open as a filestream.int save
– Optional- 0 (default) – Path is relevant to pack location.
- 1 – Path is relevant to Saves folder.
char file_name = "data/config.txt";
int save_dir = 0;
int index = openfilestream("data/config.txt", save_dir (optional));
1 thought on “Filestream”
Comments are closed.