byte by byte from file
byte by byte from file
(OP)
Could someone tell me how I would read a file byte by byte?
The file would be like "wgfggert$%#%23r4s" and I want to read it byte by byte so instead of getting the whole string on each line put into a variable I want each byte of it to be put into different variables.
Like i would read from it the first time and get "w" then read it again and get "g" then "f" etc...
So does ne1 know how? thx
The file would be like "wgfggert$%#%23r4s" and I want to read it byte by byte so instead of getting the whole string on each line put into a variable I want each byte of it to be put into different variables.
Like i would read from it the first time and get "w" then read it again and get "g" then "f" etc...
So does ne1 know how? thx

RE: byte by byte from file
Try this
OPEN "test.txt" FOR BINARY AS #1
FOR x = 1 TO 10
a$ = INPUT$(1, #1) 'first 1 is the number of bytes
PRINT a$
NEXT
Hope this helps.
Pappy
You learn something new everyday.
RE: byte by byte from file