fstream
Interact with the internally used file streamer
Folder exists?
fstream.folderExists(string: path);Return's a boolean.
Create folder
fstream.createFolder(string: path);Delete folder
fstream.deleteFolder(string: path);File exists?
fstream.fileExists(string: path);Return's a boolean.
Read file
fstream.readFile(string: path);Delete file
fstream.deleteFile(string: path);Rename file
fstream.renameFile(string: path, string: newpath);Get file list
fstream.getFilesFromDirectory(string: path);Returns an array of file paths from the specified directory.
Error log
fstream.writeErrorLog(string: exception, string: func)Writes an error log to 'C:\Users\username\AppData\Roaming@buse\cs2.txt'. Example output:
# @buse log
# Caught exception at: 5/9/2025 2:51:07 PM
# @buse version: 2.1
# Function: runFromFile
# Exception: File missing contentLast updated
Was this helpful?