File iterating and pretty printer of containers