Function get file seems to work properly.