Name: Anonymous 2011-01-15 8:02
expert SICP programmers only
racket language for playing around, the racket/base for modules with the needed libraries required.#lang racket at the top of your source files.
(define postdb '())
(define (savedb file)
(with-output-to-file file
(lambda () (display postdb))
#:mode 'binary
#:exists 'replace))
(define (loaddb file)
(with-input-from-file file
(lambda () (set! postdb (read)))
#:mode 'binary))