W3cubDocs

/Haxe C#

File

package cs.system.io

Available on cs

Static methods

static AppendAllText (path:String, contents:String):Void

static AppendAllText (path:String, contents:String, encoding:Encoding):Void

static AppendText (path:String):StreamWriter

static Copy (sourceFileName:String, destFileName:String):Void

static Copy (sourceFileName:String, destFileName:String, overwrite:Bool):Void

static Create (path:String):FileStream

static Create (path:String, bufferSize:Int, options:FileOptions, fileSecurity:FileSecurity):FileStream

static Create (path:String, bufferSize:Int, options:FileOptions):FileStream

static Create (path:String, bufferSize:Int):FileStream

static CreateText (path:String):StreamWriter

static Decrypt (path:String):Void

static Delete (path:String):Void

static Encrypt (path:String):Void

static Exists (path:String):Bool

static GetAccessControl (path:String):FileSecurity

static GetAccessControl (path:String, includeSections:AccessControlSections):FileSecurity

static GetAttributes (path:String):FileAttributes

static GetCreationTime (path:String):DateTime

static GetCreationTimeUtc (path:String):DateTime

static GetLastAccessTime (path:String):DateTime

static GetLastAccessTimeUtc (path:String):DateTime

static GetLastWriteTime (path:String):DateTime

static GetLastWriteTimeUtc (path:String):DateTime

static Move (sourceFileName:String, destFileName:String):Void

static Open (path:String, mode:FileMode):FileStream

static Open (path:String, mode:FileMode, access:FileAccess, share:FileShare):FileStream

static Open (path:String, mode:FileMode, access:FileAccess):FileStream

static OpenRead (path:String):FileStream

static OpenText (path:String):StreamReader

static OpenWrite (path:String):FileStream

static ReadAllBytes (path:String):NativeArray<UInt8>

static ReadAllLines (path:String):NativeArray<String>

static ReadAllLines (path:String, encoding:Encoding):NativeArray<String>

static ReadAllText (path:String):String

static ReadAllText (path:String, encoding:Encoding):String

static Replace (sourceFileName:String, destinationFileName:String, destinationBackupFileName:String):Void

static Replace (sourceFileName:String, destinationFileName:String, destinationBackupFileName:String, ignoreMetadataErrors:Bool):Void

static SetAccessControl (path:String, fileSecurity:FileSecurity):Void

static SetAttributes (path:String, fileAttributes:FileAttributes):Void

static SetCreationTime (path:String, creationTime:DateTime):Void

static SetCreationTimeUtc (path:String, creationTimeUtc:DateTime):Void

static SetLastAccessTime (path:String, lastAccessTime:DateTime):Void

static SetLastAccessTimeUtc (path:String, lastAccessTimeUtc:DateTime):Void

static SetLastWriteTime (path:String, lastWriteTime:DateTime):Void

static SetLastWriteTimeUtc (path:String, lastWriteTimeUtc:DateTime):Void

static WriteAllBytes (path:String, bytes:NativeArray<UInt8>):Void

static WriteAllLines (path:String, contents:NativeArray<String>):Void

static WriteAllLines (path:String, contents:NativeArray<String>, encoding:Encoding):Void

static WriteAllText (path:String, contents:String):Void

static WriteAllText (path:String, contents:String, encoding:Encoding):Void

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/cs/system/io/File.html