Changed File operation methods from instance methods to class methods