What I not understand, Why You rename the file? And why when rename the file not change that function, or simply put a variable that hodls the actual file name.
Something like:
PUBLIC file_name
file_name = "MyTextFile.TXT"
..................
file_content = FILETOSTR(file_name)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.