os.File clean up + socket.v (dial())

This commit is contained in:
Alexander Medvednikov 2019-06-30 16:11:55 +02:00
parent 386367c3d5
commit 61b51f6149
6 changed files with 94 additions and 9 deletions

View file

@ -236,7 +236,7 @@ fn (p mut Parser) parse() {
}
if true && !p.first_run() && p.fileis('test') {
out := os.create('/var/tmp/fmt.v')
out.appendln(p.scanner.fmt_out.str())
out.writeln(p.scanner.fmt_out.str())
out.close()
}
return