File and Folder Functions Module
A module of file and folder functions with robust error trapping and checking. This is very useful, add it to any application that requires handling files or folders to save yourself a lot of time. It does more error checking and trapping than it needs in order to avoid the usual errors that happen when you allow users to handle files on a computer.
What is it?
A module of functions for handling files and folders, most useful when you want to just put it in the application and start using it. Because there is exhaustive error checking, you can implement it and use the function return values to check whether the operation was successful or not.
What is the functionality?
- fstrAddSlash : automatically add a trailing backslash to a path only if needed.
- blnIsFileReadable : return true if a file is readable (can be opened for reading)
- blnIsFileWritable : return true if a file is writable (can be opened for output)
- blnIsFileInUse : return true if a file is locked by another process
- blnDoesFileExist : return true if a file exists
- strFilePathOnly : return the path part only of a file name
- blnDoesFolderExist : return true if a folder exists
- blnCreateFolder : create a folder if it doesn't exist
- blnDeleteFolder : delete a folder
- strFileNameWOutExtension : return a qualified file name without the extension
- blnRenameFile : rename a file
- strChangeFileExtension : change a file extension
Why use it?
Because it saves time; you don't have to recreate the wheel every time you need a function to check, create or delete a file. It has excellent error checking so you can simply add it to your application without having to write in more code. It's simple and well-documented so you don't have to scroll through trying to figure out which function does what and where. There really isn't any reason NOT to use it.
