C# Class fs4net.Framework.Utils.RootedFileUtilities

Show file Open project: toroso/fs4net

Public Methods

Method 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 method

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
return void

ReadText() public static method

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
return string

WriteText() public static method

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
return void