I try to open a binary file by using code:

open "a.bin" for binary as #1
while not eof(1)
msgbox (asc(input (1, #1))
wend
close(1)

but I found that, most of the value print out was 0 (what it should be like 254, 238, 221 etc, but the value 255 was able to print out!), I don't know why, could someone able to help me?