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 242273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:49:25+00:00 2026-05-11T20:49:25+00:00

I am building a game in Visual Studio 2008 and in order to build

  • 0

I am building a game in Visual Studio 2008 and in order to build levels, i will have two types of files (more than that actually but these two are the only ones important to my question) i need to parse. One will dictate the contents of a level and will look something like this:

LevelName = “Sample Level”

Object1Type = “CustomObject”

Object1File = “WideFloor_DF”

Object1Position = 600,600

Object2Type = “Circle”

Object2Position = 550, 500

Object2Mass = 5

etc.

The other will dictate the properties for custom objects, and look something like this:

Name = “Wide Floor”

Mass = 1

GeometryMap = “WideFloor_GM”

IsStatic = true

etc.

I’m not very familiar with regexes (read: i don’t like them because the look too much like line noise to easily understand) and i was wondering if there is an easier method than using tons of regexes?

edit: i knew i forgot something! i really hate xml files, so i would really prefer not to use them (waaaaaaaay too verbose for me).
edit 2: i like the format i’ve come up with and would prefer not to change.

  • 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-11T20:49:25+00:00Added an answer on May 11, 2026 at 8:49 pm

    What about using XML files? You can read and write them easily using XMLReader and XMLWriter objects, and you won’t have to deal with Regex at all.

    <Level name="Sample Level">
       <Object type="CustomObject" file="WideFloor_DF" positionX="600" positionY="600" />
       <Object type="Circle" file="WideFloor_DF" positionX="500" positionY="500" mass="5" />
    </Level>     
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a maze application in visual basic. The game relies on two variables,
I'm building a game in XNA 3 and I have the levels stored in
I'm building an iOS game that will have both singleplayer and multiplayer modes. I'm
I am building a game in Visual Basic called Battleship. I have 100 buttons
I have been building a game for a while (nearly done) - But the
Say you're building a Tetris game. As any proper programmer, you have your view
I'm building a simple 2d game,and I'm wondering if some better coders than I
I'm building a little Android game using libgdx. For now I have a copy
Please help me anyone of possible. I am building a game where I will
I am building a game and the main character's arm will be following the

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.