I have 3 gadgetText (163, 166 and 169)
i use a file requester to fill them. The paths are therefore all good (not files coming from the root C:/. However, I can't make " If ReadFile(6, a$) " understand that the file is necessarily good and contains several Bytes.
It debugs the line:
Debug " error : "+a$"
I don't understand anything...
Code: Select all
If CreateFile(7, "f:\tmp\file.ini")
For i= 163 To 169 Step 3
a$= GetGadgetText(i)
If ReadFile(6, a$)
Debug Lof(6)
WriteStringN(7, a$)
Debug a$
CloseFile(6)
Else
WriteStringN(7, "")
Debug " error : "+a$
EndIf
Next
CloseFile(7)
EndIf



