nim-eth/tests/fuzzing/fuzzing_helpers.nim

9 lines
147 B
Nim
Raw Permalink Normal View History

import
std/streams
proc toFile*(data: seq[byte], fn: string) =
var s = newFileStream(fn, fmWrite)
for x in data:
s.write(x)
s.close()