write twitter stream to file