getword


reads a word

getword(f)

When a file has been opened by f=fopen("fff r") getword(f) returns the current r'ead word and NIL if end of file.

getword("w0\nw1\n ..."),n)

returns wn.
Options:
format("c"); separator is c (\n by default).
Examples:
w="A\nB C),1;getword(w); returns B C.
getword(w)format(" "); returns C.

See also

fopen
fclose
fread
fwrite