Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
test1Gb.txt
#1
What is the fastest way to create the file?

I test

Macro Macro5
Code:
Copy      Help
_s.all(1024*1024*1024 2 '.')
_s.setfile("$Desktop$\test1Gb.txt")

but

Error (RT) in Macro4: failed to allocate memory
#2
Macro Macro1475
Code:
Copy      Help
__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"
#3
Thanks.


Forum Jump:


Users browsing this thread: 1 Guest(s)