Updated open file Method

Will open any file now.