Thanks, I didn't know that autolisp was not capable of automatically transforming an integer into a string.
For your optimized way, I will implement that in a next iteration, first I'd like to have something running, then I will do as you said. You are right it is much better to do it your way, but currently I don't know how to achieve that.
EDIT: I don't understand how increments/decrments work.
(setq pointer (1- pointer))
This doesn't work
EDIT: actually it works. I had defined pointer as being a local variable, that's why it didn't work.
Therefore:
I don't understand how local variables work in autolisp.
(but I don't really care right now)
EDIT:
I can only go through the file once. When I added a "close fileData" it got the following error:
; error: stream is closed: #<FILE internal>
Does this means that the file is already closed? If so, why can't I loop again through it???
EDIT: File looping fixed!
I had to move the file opening statement inside the repeat. Because I wasn't opening it anymore, so no lines could be read from it :ugly: