Read file items into a map.