Sign in to follow this  
Anita Sokay

Parsing Structured Text Files

Recommended Posts

Anita Sokay    122
Hey Everyone, I am currently trying to write some java code to parse a structured text file. I was wondering if there are any on-line tutorials to help me, or maybe somewhere to download code? Thanks! Anita.

Share this post


Link to post
Share on other sites
SiCrane    11839
You may wish to look up "parser generators" or go directly to something like ANTLR. If the text file conforms to an existing format, you may be able to find a parser for that format. For example, there are dozens of different XML parsers available.

Share this post


Link to post
Share on other sites
Anita Sokay    122
Thanks for that,

I am actually trying to parse Half Life 2 vmf files which are basically structured text. What I am looking for is something that will parse some structured text that is not xml...something basic that I can get to grips with, compile and then build on...so far I have only found extremly complex java parsers for xml which I cant get my head around,

Anita.

Share this post


Link to post
Share on other sites
Jamison    289
If your tring to parse Half Life 2 vmf files, you'll have better luck making one yourself. It could be hard to find. Or maybe try Google.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this