Implemented file: added new functions to File class.