Error out if we can't create a file.
Use concat instead of ++.
Error out if read_file() fails.