Subject: Re: File I/O & String conversion - CLISP
From: rpw3@rpw3.org (Rob Warnock)
Date: Thu, 23 Oct 2008 05:38:15 -0500
Newsgroups: comp.lang.lisp
Message-ID: <_fOdnVvztLiKyZ3UnZ2dnUVZ_tLinZ2d@speakeasy.net>
Pascal Bourguignon  <pjb@informatimago.com> wrote:
+---------------
| Marco Antoniotti wrote:
| > On Oct 22, 10:01 pm, William James <w_a_x_...@yahoo.com> wrote:
| >> On Oct 20, 7:23 pm, Carla <crashoverride...@gmail.com> wrote:
| >>> I have to read this data line by line, and convert it into list of
| >>> lists, of individual strings.
| >>> (("D" "." *" "." "F") ("." "." "1" "." "."))
| >>> Can someone help me out with this please?
| >> Ruby:
| >>
| >> IO.readlines("junk0").map{|line| line.strip.split("") }
| > 
| > (defun process-file (file)
| >    (mapcar (lambda (line) (split-sequence line)) (readlines file)))
| > 
| > (compile 'process-file)
| > 
| > Now, which part of the Ruby code is not rendered in CL?
| 
| No, which part of CL code is not rendered in Ruby?
| 
| ;-)
+---------------

COMPILE, of course!  ;-}


-Rob

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