[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

Re: How to store into an array

William James

6/5/2015 3:59:00 PM

Jan wrote:

> I am wondering if anyone know how to store a file of symbol
> into an array? For instance in my file i have:
>
> My name is Jan
> How are you doing?
> ...etc
>
> And i want to store this information into an array so that when i do
> (aref array 2) ==> is
>
> The problem is that i don't know how big the file is.

Gauche Scheme:

(use srfi-42 :only (vector-ec))

(call-with-input-file "junk"
(lambda (in) (vector-ec (:port s in read) s)))

--
You have politicians saying that ... as many Africans as want to come into
Sweden should be able to come.... They've already said that everybody from
Syria can come to Sweden.... [T]hey are actually thinking of commandeering
people's vacation homes because they need more housing for immigrants.
--- Kevin MacDonald (lnrlive.com/tpc/tpc20150509c.mp3)