TAKE takes a line from an input.
FILE-IO GENERAL-IO
TAKE value
value - name of the file handle that is assigned to a file
/LINE - reads a line of data from the input
/OVER - Reading binary file ports, no need to use AS BINARY!
TAKE takes a line from an input. Storing directly into number types when reading binary file ports with TAKE/OVER, without needing to use AS BINARY! is implemented.
An example that reads a line from an input file
data-file= ./meta.data
Either metadata: try open data-file [
data-input: TAKE/LINE metadata
][
write/line "Not able to open or read from file"
]