WAD. @FILEREADB is intended to return "a string of space-separated numeric digits representing the ASCII value of each character" (see the help). You get a space even with one character. (It has always behaved this way, and changing it now would break every batch file that uses @FILEREADB.)
Right! And regardless of whether it's outputting one or many numbers, testing its output is cumbersome. You have to put leading spaces in literal test strings, or use %TRIM or @WORD.
The bottom line is that it's grandfathered in. And it's too bad we're stuck with it. But it's a good thing TCC doesn't do that with all space-separated lists (compare to @ASCII, _IP, et al.).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.