Changed open mode to 'a', no read access needed
Merge pull request #1007 from CZechBoY/patch-7

Changed open mode to 'a', no read access needed