mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
* make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
12 lines
215 B
Nim
12 lines
215 B
Nim
import memfiles, os
|
|
import std/syncio
|
|
|
|
var
|
|
mm: MemFile
|
|
fn = "test.mmap"
|
|
# Create a new file
|
|
mm = memfiles.open(fn, mode = fmReadWrite, newFileSize = 20)
|
|
mm.close()
|
|
# mm.close()
|
|
if fileExists(fn): removeFile(fn)
|