Add iterator for File class.