write-ups-challenges-2020-2021/scrambled_message/scrambled_message.rkt
2022-11-24 18:03:20 +01:00

16 lines
355 B
Racket

#!racket
(require rnrs/bytevectors-6)
(require rnrs/io/ports-6)
(define file (open-file-input-port "memory.bin"))
;; Reads all the bytes from the input-port (for example a file)
;; and returns a byte vector
(define (read-all-bytes input-port)
(get-bytevector-all input-port))
(define contents (read-all-bytes file))
;; Thats all we got, good luck!