C# Class Dev2.Common.Wrappers.FileWrapper

Inheritance: IFile
Afficher le fichier Open project: Warewolf-ESB/Warewolf Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Copy ( string source, string destination ) : void
source string
destination string
Résultat void

Delete() public méthode

public Delete ( string tmpFileName ) : void
tmpFileName string
Résultat void

Exists() public méthode

public Exists ( string path ) : bool
path string
Résultat bool

Move() public méthode

public Move ( string source, string destination ) : void
source string
destination string
Résultat void

Open() public méthode

public Open ( string fileName, FileMode fileMode ) : Stream
fileName string
fileMode FileMode
Résultat System.IO.Stream

ReadAllBytes() public méthode

public ReadAllBytes ( string path ) : byte[]
path string
Résultat byte[]

ReadAllText() public méthode

public ReadAllText ( string fileName ) : string
fileName string
Résultat string

WriteAllBytes() public méthode

public WriteAllBytes ( string path, byte contents ) : void
path string
contents byte
Résultat void

WriteAllText() public méthode

public WriteAllText ( string path, string contents ) : void
path string
contents string
Résultat void