Hi Daniel!
* Daniel I Hong <[email protected]> [170714 20:47]:
> I just recently began using Chicken, and I ran into a problem
> when trying to write something to a file. Is there any function
> identical to 'write' from from the 'extras' unit, except it prints
> literal newlines (like how 'display' prints newlines) instead of
> '\n'? Or is there an easy way around this? Any help would be much
> appreciated. Thanks!
I am not sure whether I understand the problem at hand correctly.
(with-output-to-file "foo"
(lambda ()
(print "Hello World!")))
Using (display "foo) (newline) has the same effect. Is that what
you are looking for?
Kind regards!
Christian
--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users