I made a program that can read binary files and it works, but When I use it on any shortcut file it doesn't work. I double checked my spelling. I am using .Ink as the file extension. Please tell me what's wrong. Here is my code
K=0
g=1
input "File To Read From Here>" ;in$
FileName$=in$
input "File To Save Data in Here>" ;Out$
open to read 1,FileName$
if file exist(Out$)=1 then delete file Out$
open to write 2,Out$
FS=File size(FileName$)
While K<FS
Read Byte 1,a
Write string 2,str$((a))
K=K+1
endwhile
close file 2
close file 1
Print " "
Print "Pres any key to exit"
suspend for key
end