printf "data" > 'foo.data'
printf "index" > 'foo.index'