This example shows how to create a file with meta commands and read strings and numbers from the file.
"File read example" "lib/modules/standard.whl" "lib/modules/file.whl" ; Declare a file named "fruit.rtf" and add data to it: "fruit.rtf" "1" "Apple" "2" "Orange" "3" "Grape" proc main() number handle = fileOpenRead("fruit.rtf") string s number i, j clearConsole() for i = 0 to 2 ; Read a number from the file and print the number in de console: j = fileReadNumber(handle) printN(j) ; Read a string from the file and print the string in the console: fileReadString(handle, s) printS(s) end end