Bugfix

Moved the instantiation of the FileOutputStream that was causing
NullPointerException when the file was already created.
Merge pull request #2 from diegocarloslima/48740678b3a54d0c1ccc333551b0b6927ee96856

Moved the instantiation of the FileOutputStream that was causing
NullPointerException when the file was already created.

Thanks, diegocarloslima!