# File karel/robot_world.rb, line 266
  def save_world(filename)
    file = File.new(filename, "w")
    file.puts "KarelWorld"
    @Beepers.keys.each do |key|
       put_line(file, "beepers", key[0], key[1], @Beepers[key])
    end
    @EastWestWalls.keys.each{|key| 
      put_line(file, "eastwestwalls", key[0], key[1], key[1])
    }
    @NorthSouthWalls.keys.each{|key|  
      put_line(file, "northsouthwalls", key[1], key[0], key[0])
    }
    file.close
    nil
  end