When offset passed return RandomAccessFile when not return FileOutputStream
Merge pull request #724 from josedonizetti/hasoffet_flag

When offset passed return RandomAccessFile when not return FileOutputStream