C# Class fs4net.Framework.Utils.RootedFileUtilities

Afficher le fichier Open project: toroso/fs4net

Méthodes publiques

Méthode Description
AppendText ( this me, string text ) : void

Appends the specified string to the end of the file. If the file does not exist it is created.

ReadText ( this me ) : string

Reads all content of the file and returns it as a string.

WriteText ( this me, string text ) : void

Creates a new file containing the specified string.

Method Details

AppendText() public static méthode

Appends the specified string to the end of the file. If the file does not exist it is created.
The file's parent directory cannot be found; The /// file is on an unmapped drive. The descriptor denotes an existing directory. The caller does not have the required permission (according to the MSDN documentation).
public static AppendText ( this me, string text ) : void
me this
text string
Résultat void

ReadText() public static méthode

Reads all content of the file and returns it as a string.
The file cannot be found. The file's parent directory cannot be found; The /// file is on an unmapped drive. The descriptor denotes an existing directory. The caller does not have the required permission (according to the MSDN documentation).
public static ReadText ( this me ) : string
me this
Résultat string

WriteText() public static méthode

Creates a new file containing the specified string.
The file's parent directory cannot be found; The /// file is on an unmapped drive. The descriptor denotes an existing directory. The caller does not have the required permission (according to the MSDN documentation).
public static WriteText ( this me, string text ) : void
me this
text string
Résultat void