File input reader for mapper