Writing a text file into an array on Forth
问题 I have a text file, containing an array of numbers such as: 1 0 0 1 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 0 0 1 0 0 I have opened the text file with the following code: variable file-id : open_file ( -- ) \ Opens the text file s" c:\etc\textfile.txt" r/w open-file throw file-id ! ; I have also created an array to store this data: create an_array 25 chars allot \ Create the array : reset_array ( -- ) big_array 25 0 fill ; reset_array \ Set all elements to 0 Is there a way to write the contents of