make_Yearly_Text_Archive_1.py 389 B

123456789
  1. def archiveYahooMessage(file, archiveFile, messageYear, format):
  2. try:
  3. f = open(archiveFile, 'a')
  4. f.write(loadYahooMessage(file, format))
  5. f.close()
  6. print ('Yahoo Message: ' + file + ' archived to: archive-' + str(messageYear) + '.txt')
  7. except Exception as e:
  8. print ('Yahoo Message: ' + file + ' had an error:')
  9. print (e)