previousFileReferenced

The default string FileName refers to to store the last file referenced. You can use this if you like, or provide a different variable to FileName in your function.

string previousFileReferenced;

Meta