#!/usr/bin/env ruby

# 1112, Thu 29 Sep 11 (NZDT)

# Convert cecil class file to the form U;rich's solver.php expects

# Nevil Brownlee, U Auckland

n = 0
Dir.glob("submissions/*/*/Files/*").each do |fn|
  # print "#{fn}\n"
  # print "   #{File.dirname(fn)}/answers.txt\n"
  File.rename(fn, "#{File.dirname(fn)}/answers.txt")
  n += 1 # ;  exit if n == 10
end
