9591Re: "ocaml_beginners":: Ocaml and Python (was: Writing to many files)
- Apr 4, 2008On Thu, Apr 03, 2008 at 09:41:20AM +0100, Richard Jones wrote:
> OCaml-CSV, which as I said you should be using instead of attemptingI know about OCaml-CSV and have used it in another program. In this
> to parse CSV files yourself, uses an imperative state machine so it
> should be reasonably fast.
case, however, I am only interested in the second field on each line.
So I thought that it will be faster to use Scanf to scan the string
just up to the second field than to use OCaml-CSV that will parse the whole
line and create a list from it.
I might as well experiment with OCaml-CSV in this case.
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch
"Thou wilt keep him in perfect peace, whose mind is
stayed on thee: because he trusteth in thee."
- << Previous post in topic Next post in topic >>