Add feature to write inside existing file. (Fix #52)