When I try to run the code below the first FileGetByte works ok, but for the If...Then statement I get the compilation message that c1 is used before it is assigned any value (irrespective if the first FileGetByte is commented out or not). It is easy to do a workaround but I would like to understand why it doesn't work
all the best / Björn
B4X:
txt=AppPath&"\Marie.jpg.lnk"
FileOpen(c1,txt,cRandom)
x=FileGetByte(c1,1)
If FileGetByte(c1,1)=0 Then
End If
all the best / Björn