File iterator works