|
@@ -56,7 +56,7 @@ class File {
|
|
|
|
|
|
public static function read( path : String, binary : Bool = true ) : FileInput
|
|
|
{
|
|
|
- #if std-buffer //standardize 4kb buffers
|
|
|
+ #if std_buffer //standardize 4kb buffers
|
|
|
var stream = new cs.system.io.FileStream(path, Open, Read, ReadWrite, 4096);
|
|
|
#else
|
|
|
var stream = new cs.system.io.FileStream(path, Open, Read, ReadWrite);
|
|
@@ -66,7 +66,7 @@ class File {
|
|
|
|
|
|
public static function write( path : String, binary : Bool = true ) : FileOutput
|
|
|
{
|
|
|
- #if std-buffer //standardize 4kb buffers
|
|
|
+ #if std_buffer //standardize 4kb buffers
|
|
|
var stream = new cs.system.io.FileStream(path, Create, Write, ReadWrite, 4096);
|
|
|
#else
|
|
|
var stream = new cs.system.io.FileStream(path, Create, Write, ReadWrite);
|
|
@@ -76,7 +76,7 @@ class File {
|
|
|
|
|
|
public static function append( path : String, binary : Bool = true ) : FileOutput
|
|
|
{
|
|
|
- #if std-buffer //standardize 4kb buffers
|
|
|
+ #if std_buffer //standardize 4kb buffers
|
|
|
var stream = new cs.system.io.FileStream(path, Append, Write, ReadWrite, 4096);
|
|
|
#else
|
|
|
var stream = new cs.system.io.FileStream(path, Append, Write, ReadWrite);
|
|
@@ -88,4 +88,4 @@ class File {
|
|
|
{
|
|
|
cs.system.io.File.Copy(srcPath, dstPath);
|
|
|
}
|
|
|
-}
|
|
|
+}
|