title: How can I download big files in Deno?
body: <p>I'm trying to download a 10GB file, but only 4GB get saved to disk, and memory is growing a lot.</p>
  
  <pre><code>const res = await fetch('https://speed.hetzner.de/10GB.bin');
  const file = await Deno.open('./10gb.bin', { create: true, write: true })
  
  const ab = new Uint8Array(await res.arrayBuffer())
  await Deno.writeAll(file, ab)
  </code></pre>