prints an answers file to an iostream
write a file and returns the number of bytes written
[Validate]