The file management functions allows 4gl developers to manage files and directories on the application server. You are able to find the file name from a given path and similarly you can find just the directory from a given file path. You are also able to create and remove directories and paths on the server side.
fgl_rm(file_name)
This function removes the named file if it exists, and returns TRUE on success and FALSE if it fails. For example, to remove the file ‘HowTo’ use the following line of code:
fgl_rm("HowTo")
If you only specify the filename, the function will search in the current working directory for that file. It is also possible to pass an entire path too.
When you specify a file name, be careful with its case.
UNIX is case-sensitive, so it will treat files which names come in different cases as separate files.