Read file and store data into array
Posted: Mon Sep 27, 2010 11:42 am
Hello.
I'm trying to develop a code to read data from a txt file as follow:
3
2
2
3
2
2
So, I'd like to store these values into a array or something like that. I'm a lisp beginner!
The idea is to use each element of this array to draw lines.
For example:
for i = 0 : array.lengh
{
for j = 0: array[j]
{
draw line [j]
}
}
I don't know how to put or get values into array using lisp too.
I'm trying to develop a code to read data from a txt file as follow:
3
2
2
3
2
2
So, I'd like to store these values into a array or something like that. I'm a lisp beginner!
The idea is to use each element of this array to draw lines.
For example:
for i = 0 : array.lengh
{
for j = 0: array[j]
{
draw line [j]
}
}
I don't know how to put or get values into array using lisp too.