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 12:16 UTC
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 13:04 UTC
Down Rodeo
Cap'n Moth of the Firehouse

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

Chrome Whore
2009 Sep 6 • 2547
10 ₧
What are you trying to do?
 
 
 
2010 Nov 25 at 02:06 UTC
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 09:45 UTC
Page [1]