Skip to content

Instantly share code, notes, and snippets.

@Varriount
Created April 1, 2014 02:47
Show Gist options
  • Save Varriount/9906744 to your computer and use it in GitHub Desktop.
Save Varriount/9906744 to your computer and use it in GitHub Desktop.
import marshal
import streams
import strtabs
when isMainModule:
var
table = newStringTable(modeCaseSensitive)
dataStream = newFileStream("test.stream", fmReadWrite)
table["key"]= "value"
echo("Storing ", $$(table), " in the stream.")
dataStream.store(table)
dataStream.flush()
dataStream.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment