implemented file opening and displaying information of file