Maybe should we wrap this in a using to properly dispose the file handles. Windows tends to be quite picky about this.