Browse Source

[lua] add override for FileOutput.close

Justin Donaldson 9 years ago
parent
commit
5784d5e773
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/lua/_std/sys/io/FileOutput.hx

+ 4 - 0
std/lua/_std/sys/io/FileOutput.hx

@@ -47,4 +47,8 @@ class FileOutput extends haxe.io.Output {
 		f.write(String.fromCharCode(c));
 	}
 
+	override public function close() {
+		f.close();
+	}
+
 }