Java file parsers

Java file parsers

Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
I'm having to write one, and it's really fuckin' boring. It makes me wonder how people write huge configuration files, because seriously, this seems like the worst way of doing things. I'm currently looking at using the scanner class for great victory but God knows I'll be here a while.

I'm guessing it's easier in grown-up languages, or maybe there are some C libraries out there that will do it. I dunno.
 
 
2010 Nov 24 at 04:16 PST
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
Through some bullshit combination of regexes and Scanners I have managed to read the whole file in and put it in a string, and can now use it with said Scanner to split it into tokens.

It's not supposed to be this hard, right?
 
 
2010 Nov 24 at 05:04 PST
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
 
 
2010 Nov 24 at 06:23 PST
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
What are you trying to do?
 
 
2010 Nov 24 at 18:06 PST
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
I was trying to read some particular data in from a file in a slightly generic way. Not a fun time.
 
 
2010 Nov 25 at 01:45 PST
Page [1]