so your votes in your file:
0 1 2
1 0 2
2 1 0
would fill a table like the following:

Voters In Order | 1stVote | 2ndVote | 3rdVote
First Voter's Card | cand.0 | cand.1 | cand.2
2nd Voter's...