port `store_file` option from out_datacounter
Merge pull request #1 from sonots/store_file

port `store_file` option from out_datacounter