Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Save bug
#6
str.setfile code is like this. Maybe helps to debug.

Macro Macro3246
Code:
Copy      Help
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"


Messages In This Thread
Save bug - by lrdsatyr8 - 10-13-2022, 02:04 PM
RE: Save bug - by Gintaras - 10-13-2022, 02:33 PM
RE: Save bug - by lrdsatyr8 - 10-13-2022, 02:38 PM
RE: Save bug - by Gintaras - 10-13-2022, 02:54 PM
RE: Save bug - by lrdsatyr8 - 10-19-2022, 12:30 PM
RE: Save bug - by Gintaras - 10-19-2022, 12:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)