Writing files

These routines write problem information to formatted a file.