mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
13 lines
218 B
Nim
13 lines
218 B
Nim
import asyncdispatch, asyncfile, os
|
|
|
|
const Filename = "t15148.txt"
|
|
|
|
proc saveEmpty() {.async.} =
|
|
let
|
|
text = ""
|
|
file = openAsync(Filename, fmWrite)
|
|
await file.write(text)
|
|
file.close()
|
|
|
|
waitFor saveEmpty()
|