added FileIO function to open file location