Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 615641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:14:31+00:00 2026-05-13T18:14:31+00:00

I just downloaded OpenSTV after seeing the most recent SO blog post, regarding the

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:14:32+00:00Added an answer on May 13, 2026 at 6:14 pm

    The best explanation of the BLT file format is here:

        4 2          # four candidates are competing for two seats
        -2           # Bob has withdrawn (optional)
        1 4 1 3 2 0  # first ballot
        1 2 4 1 3 0
        1 1 4 2 3 0  # The first number is the ballot weight (>= 1).
        1 1 2 4 3 0  # The last 0 is an end of ballot marker.
        1 1 4 3 0    # Numbers in between correspond to the candidates
        1 3 2 4 1 0  # on the ballot.
        1 3 4 1 2 0
        1 3 4 1 2 0  # Chuck, Diane, Amy, Bob
        1 4 3 2 0
        1 2 3 4 1 0  # last ballot
        0            # end of ballots marker
        "Amy"        # candidate 1
        "Bob"        # candidate 2
        "Chuck"      # candidate 3
        "Diane"      # candidate 4
        "Gardening Club Election"  # title
    

    All I did was

    1. Perform an ad-hoc query in SQL Management Studio to get the voting results
    2. Copy-pasted results into a text file (output is tab-delimited by default)
    3. Wrote a small 50 line C# app to convert from the query to BLT format
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just downloaded and installed the most recent version of Chirpy [ Nude Chirpy
Ive just downloaded a free theme and after check the files out with a
I just downloaded libnfnetlink and libnetfilter_queue tarballs. After succesfully compiling, libnfnetlink is installed (make
Just downloaded the Visual Studio 2010 Premium and realized that can't compile the project,
I just downloaded the Oxygene free command line compiler, and tried to read the
I just downloaded the WPF Reports v0.4 alpha When I build the project in
I just downloaded the Springsource Tool Suite, and I created a simple bean configuration
I just downloaded the Orchard CMS , opened it up in VS2008 and hit
I just downloaded and ran the boost installer for version 1.42 (from boostpro.com), and
I just downloaded the release version of MVC 2, pretty excited about that! Problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.