[docs]defquickRead(filename:Union[str,Path],save_location:Union[Path,str]=Path("./"),filetype:Literal["json","txt"]="json",encoding:str="utf-8",)->Any:"""Quick read file. Args: filename (Union[str, Path]): Filename. save_location (Union[Path, str], optional): Location of files. Defaults to Path('./'). filetype (Literal["json", "txt"], optional): Type of the file. Defaults to "json". If "json", it will read the file as JSON. If "txt", it will read the file as plain text. encoding (str, optional): Encoding method. Defaults to 'utf-8'. Returns: str: Content of the file. """ifnotisinstance(save_location,Path):save_location=Path(save_location)iffiletype=="json":withopen(save_location/filename,"r",encoding=encoding)asFile:returnjson.load(File)else:withopen(save_location/filename,"r",encoding=encoding)asFile:returnFile.read()