Subject: Re: newbie post - by delimited text file reader suite any good?
From: rpw3@rpw3.org (Rob Warnock)
Date: Tue, 28 Feb 2006 22:54:27 -0600
Newsgroups: comp.lang.lisp
Message-ID: <fOqdnQnaE_GetJjZnZ2dnUVZ_t-dnZ2d@speakeasy.net>
Richard Smith  <r0d1s3@weldsmith4.co.uk> wrote:
+---------------
| here is my group of functions to process mainly TSV
| (Tab Separated Variable) files.
...
| (defun my-delimtext-parse (delimchar mystring) ...)
+---------------

You might want to look at <http://www.cliki.net/SPLIT-SEQUENCE>,
which was designed by community consensus over a considerable
period of discussion [and as a result provides most of the
optional arguments one expects of CL sequence functions].
It can be used like this:

    > (with-open-file (s "x^2.txt")
	(loop for line = (read-line s nil nil)
	      while line
	  collect (split-sequence:split-sequence #\tab line)))

    (("0" "0") ("0.010101" "0.00010203") ("0.020202" "0.000408122")
     ("0.030303" "0.000918274"))
    > 


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607