changed write-to-file to display-to-file, which allows the writing of raw characters instead of strings
parent
4bd3024453
commit
ed5541ba9a
7
rodo.rkt
7
rodo.rkt
|
@ -108,7 +108,8 @@
|
||||||
'no
|
'no
|
||||||
'("no" "No" "n" "N")))
|
'("no" "No" "n" "N")))
|
||||||
|
|
||||||
(define (add-item-to-file item) ;; need to figure out how to add an EOL to each item
|
(define (add-item-to-file item)
|
||||||
|
(let ([item (string-append item "\n")])
|
||||||
(let
|
(let
|
||||||
([path
|
([path
|
||||||
(expand-user-path
|
(expand-user-path
|
||||||
|
@ -116,10 +117,10 @@
|
||||||
program-path
|
program-path
|
||||||
program-directory
|
program-directory
|
||||||
program-file))])
|
program-file))])
|
||||||
(write-to-file item
|
(display-to-file item
|
||||||
path
|
path
|
||||||
#:mode 'text
|
#:mode 'text
|
||||||
#:exists 'append)))
|
#:exists 'append))))
|
||||||
|
|
||||||
(define (create-file)
|
(define (create-file)
|
||||||
(let
|
(let
|
||||||
|
|
Loading…
Reference in New Issue