Carla <crashoverride111@gmail.com> wrote:
+---------------
| D.*.F
| ..1..
|
| I have to read this data line by line, and convert it into list of
| lists, of individual strings.
|
| (("D" "." *" "." "F") ("." "." "1" "." "."))
+---------------
LOOP, READ-LINE, and STRING are your friends. It's almost a "one-liner".
[O.k., depending on how fanatical you are about formatting, it's
actually a 2- or 3-liner. But it still took less than 40 seconds
by the stopwatch to write & test a solution that works with your
sample input data set.]
Note: It's considered polite in this list to first show us us your
best efforts so far [the code you wrote], and the problems you have
experienced [the exact error messages]. rather than just starting off
with "Do my homework for me!".
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607