Add more methods to File class