10-19-2022, 12:58 PM
str.setfile code is like this. Maybe helps to debug.
Macro Macro3246
Macro Macro3246
str path = "C:\Test\test.txt"
str data="test[]"
int append=1
__HFile f.Create(path iif(append OPEN_ALWAYS CREATE_ALWAYS) GENERIC_WRITE FILE_SHARE_READ)
if(append)
,LARGE_INTEGER li0; if(!SetFilePointerEx(f li0 0 FILE_END)) end "" 16 ;;move file pointer to the end
if(!WriteFile(f data data.len &_i 0)) end "" 16
f.Close
out "ok"