vle-read-string


(vle-read-string  fptr  numChars)

reads a string from file, either using a given string length or unti 0x0 EOS characters is found

Arguments

fptr  file pointer as returned by (open <filename> "rb")

numChars  if <= 0, the file is read character-by-character until next EOS 0x0 character is encountered;
if > 0, exactly numChars characters are read from string;
this allows to read strings in the 2 main storage mechanisms : using a length prefix, and using 0x0 EOS ident

Return

Lisp string value



©  Bricsys NV. All rights reserved.