Parsing Structured Text Files

Started by
2 comments, last by Jamison 18 years, 4 months ago
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.
Advertisement
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.
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.
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.

This topic is closed to new replies.

Advertisement