tempfile
='file', fileext='', mode='w+b', tmpdir=None) tempfile(pattern
Get the the path to a tempory file
Args: pattern (str): The prefix of the file. Defaults to ‘file’. fileext (str): The extension to give to the file. Defaults to ’‘. mode (str): The mode of the file. Defaults to ’w+b’. tmpdir (str): The folder where the file should be located in. Defaults to a new temporary directory.
Returns: str with the path to the file
Examples: >>> from rlike import * >>> x = tempfile() >>> x = tempfile(pattern = ‘hello’, fileext = ‘.txt’)