summary refs log blame commit diff stats
path: root/tests/stdlib/tmemfiles1.nim
blob: 33657256c012e04aa436f58317ed5b72dd78ddae (plain) (tree)
1
2
3
4
5
6
7
8
9
                   

                 





                                                            
            
                                 
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)