File

package cs.system.io

Available on cs

Static methods

staticAppendAllText(path:String, contents:String):Void

staticAppendAllText(path:String, contents:String, encoding:Encoding):Void

staticAppendText(path:String):StreamWriter

staticCopy(sourceFileName:String, destFileName:String):Void

staticCopy(sourceFileName:String, destFileName:String, overwrite:Bool):Void

staticCreate(path:String):FileStream

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

staticCreate(path:String, bufferSize:Int, options:FileOptions):FileStream

staticCreate(path:String, bufferSize:Int):FileStream

staticCreateText(path:String):StreamWriter

staticDecrypt(path:String):Void

staticDelete(path:String):Void

staticEncrypt(path:String):Void

staticExists(path:String):Bool

staticGetAccessControl(path:String):FileSecurity

staticGetAccessControl(path:String, includeSections:AccessControlSections):FileSecurity

staticGetAttributes(path:String):FileAttributes

staticGetCreationTime(path:String):DateTime

staticGetCreationTimeUtc(path:String):DateTime

staticGetLastAccessTime(path:String):DateTime

staticGetLastAccessTimeUtc(path:String):DateTime

staticGetLastWriteTime(path:String):DateTime

staticGetLastWriteTimeUtc(path:String):DateTime

staticMove(sourceFileName:String, destFileName:String):Void

staticOpen(path:String, mode:FileMode):FileStream

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

staticOpen(path:String, mode:FileMode, access:FileAccess):FileStream

staticOpenRead(path:String):FileStream

staticOpenText(path:String):StreamReader

staticOpenWrite(path:String):FileStream

staticReadAllBytes(path:String):NativeArray<UInt8>

staticReadAllLines(path:String):NativeArray<String>

staticReadAllLines(path:String, encoding:Encoding):NativeArray<String>

staticReadAllText(path:String):String

staticReadAllText(path:String, encoding:Encoding):String

staticReplace(sourceFileName:String, destinationFileName:String, destinationBackupFileName:String):Void

staticReplace(sourceFileName:String, destinationFileName:String, destinationBackupFileName:String, ignoreMetadataErrors:Bool):Void

staticSetAccessControl(path:String, fileSecurity:FileSecurity):Void

staticSetAttributes(path:String, fileAttributes:FileAttributes):Void

staticSetCreationTime(path:String, creationTime:DateTime):Void

staticSetCreationTimeUtc(path:String, creationTimeUtc:DateTime):Void

staticSetLastAccessTime(path:String, lastAccessTime:DateTime):Void

staticSetLastAccessTimeUtc(path:String, lastAccessTimeUtc:DateTime):Void

staticSetLastWriteTime(path:String, lastWriteTime:DateTime):Void

staticSetLastWriteTimeUtc(path:String, lastWriteTimeUtc:DateTime):Void

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

staticWriteAllLines(path:String, contents:NativeArray<String>):Void

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

staticWriteAllText(path:String, contents:String):Void

staticWriteAllText(path:String, contents:String, encoding:Encoding):Void

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