nim-eth/tests/fuzzing/fuzzing_helpers.nim

9 lines
147 B
Nim

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