C# Class DotNetIO.FileExtensions

Extensions for File
Afficher le fichier Open project: DotNetIO/DotNetIO

Méthodes publiques

Méthode Description
OpenAppend ( this file ) : Stream
OpenRead ( this file ) : Stream
OpenWrite ( this file ) : Stream
ReadAllLines ( string filePath ) : IEnumerable
ReadAllLinesEnumerable ( string filePath ) : IEnumerable
ReadAllText ( string path, Encoding encoding ) : string
ReadAllText ( this file ) : string

WriteAllText ( this file, string contents ) : void
WriteStream ( string targetPath, Stream sourceStream ) : int

Method Details

OpenAppend() public static méthode

public static OpenAppend ( this file ) : Stream
file this
Résultat Stream

OpenRead() public static méthode

public static OpenRead ( this file ) : Stream
file this
Résultat Stream

OpenWrite() public static méthode

public static OpenWrite ( this file ) : Stream
file this
Résultat Stream

ReadAllLines() public static méthode

public static ReadAllLines ( string filePath ) : IEnumerable
filePath string
Résultat IEnumerable

ReadAllLinesEnumerable() public static méthode

public static ReadAllLinesEnumerable ( string filePath ) : IEnumerable
filePath string
Résultat IEnumerable

ReadAllText() public static méthode

public static ReadAllText ( string path, Encoding encoding ) : string
path string
encoding System.Text.Encoding
Résultat string

ReadAllText() public static méthode

There is insufficient memory to allocate a buffer for the returned string. An IO error occrs
public static ReadAllText ( this file ) : string
file this Invokee, the file that is to be fully read.
Résultat string

WriteAllText() public static méthode

public static WriteAllText ( this file, string contents ) : void
file this
contents string
Résultat void

WriteStream() public static méthode

public static WriteStream ( string targetPath, Stream sourceStream ) : int
targetPath string
sourceStream Stream
Résultat int