File writing method for Twitter class.