Learn about writing files!

*Likewise in this one, using dat1 and dat2 instead of /tmp/dat1 and
/tmp/dat2