nim-eth/tests/fuzzing/fuzzing_helpers.nim

9 lines
149 B
Nim
Raw 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()