// Create a file that contains all level files
DayProgramFile preparedProg = new DayProgramFile();
for (int i = 0; i < levelProgArr.length; i++) {
if (levelProgArr[i] != null) {
try {
preparedProg.merge(levelProgArr[i]);
}
catch (FileFormatException exc) {
throw new PreparationException("Complete file has wrong format: "
+ preparedDir + File.separator + levelFileNameArr[i], exc);
}