Re: Parsing

new topic     » goto parent     » topic index » view thread      » older message » newer message

Thanks to both Robert and Jiri!

They're exactly what I needed.  I had one of those programming stumps, where I
knew
there's an easier way, but I just could for the life of me figure it out. The
way I
was doing it, I read in each character.  If the character = '[', I then checked
where the next ']' was, and then checked the data in between to see if it was
the
same as any of the words I was looking for.  It worked, but it was slow and
painful,
not to mention ugly.

Jiri, your's is slightly faster, when working with files the size I'm using
(quite
small, 3k maximum), and Junko's blows yours out of the water on larger files
(over
500k).  Relatively speaking of course.  The actual time it takes is almost
negligible.

I ended up using chunks of Junko's code, but once the program I'm developing
reaches
a certain point, I think I'll have to haul Jiri's solution out and take a look
at
it.

Thanks again!

Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu