2 method to read file path