Handbook
Glossary
load-codetable-file ( filename -- biassoc )
Parsing simple flat files
Next:
load-interval-file ( filename -- table )
Vocabulary
simple-flat-file
Inputs
filename
a
string
Outputs
biassoc
a
biassoc
Word description
This loads a flat file, in the form that many encoding resource files are in, with two columns of numeric data in hex, and returns a biassoc associating them.
Definition
USING:
biassocs
io.encodings.utf8
io.files
;
IN:
simple-flat-file
:
load-codetable-file
( filename -- biassoc )
utf8
file-lines
process-codetable-lines
>biassoc
;