Creates file automatically when first opening.

Added by @garyduong in his fork.