Modifier

Partager via


File.ReadAllText Method

Definition

Overloads

ReadAllText(String)
ReadAllText(String, Encoding)

ReadAllText(String)

public:
 static System::String ^ ReadAllText(System::String ^ path);
public static string ReadAllText (string path);
static member ReadAllText : string -> string
Public Shared Function ReadAllText (path As String) As String

Parameters

path
String

Returns

Applies to

ReadAllText(String, Encoding)

public:
 static System::String ^ ReadAllText(System::String ^ path, System::Text::Encoding ^ encoding);
public static string ReadAllText (string path, System.Text.Encoding encoding);
static member ReadAllText : string * System.Text.Encoding -> string
Public Shared Function ReadAllText (path As String, encoding As Encoding) As String

Parameters

path
String
encoding
Encoding

Returns

Applies to