Code : Tout sélectionner
q.l= CreateFile_("c:\888.txt", #GENERIC_READ, 0, 0, #OPEN_ALWAYS, #FILE_ATTRIBUTE_NORMAL, 0)
Global a.s{10000000}
Debug q
ReadFile_(q, @a, 9, #Null, #Null)
Do not use the PUREBASIC function(CreateFile AND ReadFile)
Using windows APi(CreateFile_,ReadFile)_
You will find BUG