add support for creating a temporary file with a custom name
- The
createTempFile
method now allows specifying a custom filename. - If no name is provided, a temporary file is created with the prefix 'tmp_' in the system's temporary directory.
- If a name is provided, the file is created in the temporary directory with the specified name if it does not already exist.