Fixed issue #26

The first file open should be append.