This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: Challenge
On Thu, Aug 03, 2000 at 04:09:47PM +0900, sen_ml@eccosys.com wrote:
>
> concerning buffered i/o, is there problem w/ using:
>
> (force-output target)
>
> for flushing the buffer? [ although it's probably prettier to close
> the port anyway. ]
hmm... the best way would be to just do something like:
(display output (open-input-file (cadddr command-line)))
or, a less drastic change:
(define output-filename (cadddr command-line))
...
(display output (open-input-file output-filename))
Then it'll just get flushed during garbage collection.
There's more than one way to do it... =^D
--
C. Ray C. aka Christopher Cramer
crayc@pyro.net
http://www.pyro.net/~crayc/