TMBASIC
Documentation
Docs
GitHub
TMBASIC Documentation
Procedures: Files
CreateDirectory
— Creates a directory, and any parent directories in the path as needed.
DeleteDirectory
— Deletes a directory, and optionally any subdirectories or files inside it.
DeleteFile
— Deletes a file.
FileExists
— Checks whether a file exists or not.
ListDirectories
— Lists all the subdirectories in a given directory.
ListFiles
— Lists all the files in a given directory.
PathCombine
— Makes a filesystem path by combining multiple path components with slashes.
PathDirectoryName
— Gets the parent directory that contains the given directory or file.
PathExtension
— Gets the file extension (like
.txt
) from a path.
PathFileName
— Gets the filename part of a path.
PathFileNameWithoutExtension
— Gets the part of the filename before the final dot.
PathSeparator
— Returns the path separator character.
ReadFileBytes
— Reads the contents of a file as a list of bytes.
ReadFileLines
— Reads the contents of a file as a list of strings.
ReadFileText
— Reads the contents of a file as a string.
WriteFileBytes
— Creates or overwrites a text file with a list of bytes.
WriteFileLines
— Creates or overwrites a text file with a list of line strings.
WriteFileText
— Creates or overwrites a text file with the contents of a string.