start writing sample file open/save