Skip to content

Instantly share code, notes, and snippets.

@euhmeuh
Created January 16, 2018 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save euhmeuh/20471158c863bdd4f941503f900e6eab to your computer and use it in GitHub Desktop.
Save euhmeuh/20471158c863bdd4f941503f900e6eab to your computer and use it in GitHub Desktop.
Generate a text file from an hexadecimal range
#lang racket
(call-with-output-file "data.txt" #:exists 'replace
(lambda (out)
(for ([i (in-range #xF101 #xF12D)])
(write-char (integer->char i) out))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment