I just downloaded OpenSTV after seeing the most recent SO blog post, regarding the results of the moderator election. Jeff wrote that he used OpenSTV to conduct the election, and supplied a ballot file (.blt) along with it that contains the voting data.
My question is: how do you create a .BLT file in C#?
Here are two ways that I can think of that the voting page did it:
- The voting page added each vote into a SQL database, and then somehow, these votes were exported into a .BLT file after voting had ended. How though? How can I do this?
- Or, the voting page created the file and then added to it each time someone voted. I'm sure that this is NOT how the voting page worked, because it's completely unscalable, but how could I do this in C#?
I'm interested in finding out how both possibilities work and how I can do that in C#. Thanks in advance. Oh, and I hope Jeff sees this question, because he'd probably have a great answer...