Browse Source

Do not pass _s to file functions

Hugh Sanderson 15 years ago
parent
commit
3f2158a65d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      std/cpp/io/File.hx

+ 3 - 3
std/cpp/io/File.hx

@@ -48,15 +48,15 @@ class File {
 	}
 
 	public static function read( path : String, binary : Bool ) {
-		return new FileInput(untyped file_open(path,(if( binary ) "rb" else "r")));
+		return new FileInput(file_open(path,(if( binary ) "rb" else "r")));
 	}
 
 	public static function write( path : String, binary : Bool ) {
-		return new FileOutput(untyped file_open(path.__s,(if( binary ) "wb" else "w")));
+		return new FileOutput(file_open(path,(if( binary ) "wb" else "w")));
 	}
 
 	public static function append( path : String, binary : Bool ) {
-		return new FileOutput(untyped file_open(path.__s,(if( binary ) "ab" else "a")));
+		return new FileOutput(file_open(path,(if( binary ) "ab" else "a")));
 	}
 
 	public static function copy( src : String, dst : String ) {