Basic file writer