dev • api • cat • file

File Management

GB.ExistFile Returns if a file exists.
GB.FileName Converts a UTF-8 charset encoded file name into a system charset encoded file name.
GB.GetTempDir Returns the directory where temporary files are stored.
GB.LoadFile Loads a file in memory.
GB.RealFileName Creates and returns a temporary real file for files located in Gambas executables.
GB.ReleaseFile Releases the memory used by a loaded file.


These functions allow you, among other things, to load a file from the current component or project, and deal with different charsets between the one used by Gambas (UTF-8) and the one used by the system.