Test code to store tweets in file