tmemfiles1.nim 196 B

12345678910
  1. import memfiles, os
  2. var
  3. mm: MemFile
  4. fn = "test.mmap"
  5. # Create a new file
  6. mm = memfiles.open(fn, mode = fmReadWrite, newFileSize = 20)
  7. mm.close()
  8. # mm.close()
  9. if fileExists(fn): removeFile(fn)