Forum   Search   Register   Log in SUPERJER FORA
 

Java file parsers

Pages: [1]
Programming Help
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5327
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.
Everyone stares when you walk in the room, they stare when you go....
    2010 Nov 24 at 04:16
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5327
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?
Everyone stares when you walk in the room, they stare when you go....
    2010 Nov 24 at 05:04
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5327
57,583 ₧
I'm descending further into madness, but my program, she works.
Everyone stares when you walk in the room, they stare when you go....
    2010 Nov 24 at 06:23
sprinkles

Chrome Whore
2009 Sep 6 • 2480
10 ₧
What are you trying to do?
...then I got some ap, and shot a big ass lazar at everyone.
    2010 Nov 24 at 18:06
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5327
57,583 ₧
I was trying to read some particular data in from a file in a slightly generic way. Not a fun time.
Everyone stares when you walk in the room, they stare when you go....
    2010 Nov 25 at 01:45

Pages: [1]
Forum and design copyright © 2008-2010 SuperJer.com