Update:enable sample04 to write tweets in a file.