Experimenting with writing votes array to a txt file

I'm trying to make the votes an array, and write that to a txt file,
then print the results.