Added a way to get file pointer