t15148.nim 218 B

12345678910111213
  1. import asyncdispatch, asyncfile, os
  2. const Filename = "t15148.txt"
  3. proc saveEmpty() {.async.} =
  4. let
  5. text = ""
  6. file = openAsync(Filename, fmWrite)
  7. await file.write(text)
  8. file.close()
  9. waitFor saveEmpty()