On Fri, Jan 26, 2007 at 03:16:17PM -0500, Mac Mason wrote:
> I've got a file that has many, many whitespace-delimited integers (and
> one whitespace-delimited string, as the very first element).
>
Some ideas you got from others.
You can also use ocamllex for such things.
Then with each callyou get the next int.
Reading the string could also done with it,
or you can read it with a function you
call once before you invoke the lexer.
As lexing is,what ocamllex is written for,
using it could make sense.
But maybe it's - for such simple data-format
an oversized thing.
Ciao,
Oliver
.