From a0e3b9a4e35b7ebde486395cd550ca7f37471afa Mon Sep 17 00:00:00 2001 From: m455 Date: Fri, 6 Apr 2018 10:51:42 -0400 Subject: [PATCH] can now write to files! --- rodo.rkt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rodo.rkt b/rodo.rkt index 3077fe7..7f5da2c 100755 --- a/rodo.rkt +++ b/rodo.rkt @@ -1,7 +1,7 @@ #! /usr/bin/env racket #lang racket/base -(require racket/vector) +(require racket/vector racket/file) (define program-name "rodo") (define program-directory ".rodo/") @@ -121,9 +121,15 @@ (open-output-file path #:mode 'text #:exists 'can-update)]) - ;;TODO + ;;TODO: ;;I think i can write to file with ;;a function right here... + ;;NOTE: this works when doing `./rodo.rkt init`, + ;;just gotta separate it into another function + (write-to-file "test" + path + #:mode 'text + #:exists 'append) (close-output-port opened-file)))) (define (create-folder)