C# Class Dev2.Common.Wrappers.FileWrapper

Inheritance: IFile
显示文件 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
Copy ( string source, string destination ) : void
Delete ( string tmpFileName ) : void
Exists ( string path ) : bool
Move ( string source, string destination ) : void
Open ( string fileName, FileMode fileMode ) : Stream
ReadAllBytes ( string path ) : byte[]
ReadAllText ( string fileName ) : string
WriteAllBytes ( string path, byte contents ) : void
WriteAllText ( string path, string contents ) : void

Method Details

Copy() public method

public Copy ( string source, string destination ) : void
source string
destination string
return void

Delete() public method

public Delete ( string tmpFileName ) : void
tmpFileName string
return void

Exists() public method

public Exists ( string path ) : bool
path string
return bool

Move() public method

public Move ( string source, string destination ) : void
source string
destination string
return void

Open() public method

public Open ( string fileName, FileMode fileMode ) : Stream
fileName string
fileMode FileMode
return System.IO.Stream

ReadAllBytes() public method

public ReadAllBytes ( string path ) : byte[]
path string
return byte[]

ReadAllText() public method

public ReadAllText ( string fileName ) : string
fileName string
return string

WriteAllBytes() public method

public WriteAllBytes ( string path, byte contents ) : void
path string
contents byte
return void

WriteAllText() public method

public WriteAllText ( string path, string contents ) : void
path string
contents string
return void