Posts: 864
Threads: 197
Joined: Apr 2005
What is the fastest way to create the file?
I test
Macro
Macro5
_s.all(1024*1024*1024 2 '.')
_s.setfile("$Desktop$\test1Gb.txt")
but
Error (RT) in Macro4: failed to allocate memory
Posts: 12,223
Threads: 144
Joined: Dec 2002
Macro
Macro1475
__HFile f.Create("$Desktop$\test1Gb.txt" CREATE_ALWAYS)
_s.all(1024*1024 2 '.')
int i
for i 0 1024
,if(!WriteFile(f _s _s.len &_i 0)) end "failed"
Posts: 864
Threads: 197
Joined: Apr 2005