Write all text

Namespace: Contracts.IO
Assembly: Contracts (in Contracts.dll)

Public Shared Sub WriteAllText( _ 
ByVal path As String, _ 
ByVal text As String, _ 
ByVal encoding As Encoding
)
This language is not supported or no code example is available.
public static void WriteAllText( 
string path
string text
Encoding encoding 
)
This language is not supported or no code example is available.
public:  
static void WriteAllText( 
String^ path
String^ text
Encoding^ encoding 
)
This language is not supported or no code example is available.
public static function WriteAllText( 
path : String
text : String
encoding : Encoding 
);
This language is not supported or no code example is available.

Parameters

path
Type: string

<default>

text
Type: string

<default>

encoding
Type: Encoding

<default>

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1