add the method of open file