Next: , Previous: , Up: Top   [Index]


Appendix G Handling FASL files

FASL files are binary files in which compiled Scheme code and data is stored; we can easily create a FASL file as follows:

vicare> (define filename "/tmp/marco/p.fasl")
vicare> (define p (open-file-output-port filename))
vicare> (fasl-write '(1 ciao "hello") p)
vicare> (close-port p)
vicare> (define p (open-file-input-port filename))
vicare> (fasl-read p)
(1 ciao "hello")
vicare> (close-port p)
vicare>