Use set-file-contents
parent
8c645f7a45
commit
7b0b174115
|
@ -17,8 +17,7 @@ MEMO: (vocab-file-contents) ( path -- lines )
|
||||||
|
|
||||||
: set-vocab-file-contents ( seq vocab name -- )
|
: set-vocab-file-contents ( seq vocab name -- )
|
||||||
dupd vocab-path+ [
|
dupd vocab-path+ [
|
||||||
?resource-path
|
?resource-path utf8 set-file-lines
|
||||||
utf8 [ [ print ] each ] with-file-writer
|
|
||||||
] [
|
] [
|
||||||
"The " swap vocab-name
|
"The " swap vocab-name
|
||||||
" vocabulary was not loaded from the file system"
|
" vocabulary was not loaded from the file system"
|
||||||
|
|
Loading…
Reference in New Issue