Posted: 12:18pm 04 Jun 2021 |
Copy link to clipboard |
 Print this post |
|
Open "doc.txt" For input As #1 Line Input #1,t$ For i= 1 To 10 Print Asc(Mid$(t,i,1)), Next i Close #1
Open "doc.txt" For input As #1 t=Input$(10,#1) For i= 1 To 10 Print Asc(Mid$(t,i,1)), Next i Close #1 End
gives > RUN 97 32 98 32 99 32 100 32 101 32 97 9 98 9 99 9 100 9 101 9 >
line input returns spaces = chr$(32) input$ returns tabs = chr$(9) which is what is in doc.txt
Why? |