First, writes even numbers to .dat file.  Then, appends odd numbers to the same file.