public void store(String directory) throws FileFormatException, IOException {
Iterator<DayProgramFile> it = getDayProgramFiles();
while (it.hasNext()) {
DayProgramFile f=it.next();
int cnt=f.getProgramFrameCount();
for (int i=0;i<cnt;i++) {
ProgramFrame frame=f.getProgramFrameAt(i);
frame.setId(i);
//dumpFrame(frame);
}
f.writeToFile(new File(directory,f.getProgramFileName()));
}
}