Muokkaa

Jaa


File.ReadAllLines Method

Definition

Overloads

ReadAllLines(String)
ReadAllLines(String, Encoding)

ReadAllLines(String)

public:
 static cli::array <System::String ^> ^ ReadAllLines(System::String ^ path);
public static string[] ReadAllLines (string path);
static member ReadAllLines : string -> string[]
Public Shared Function ReadAllLines (path As String) As String()

Parameters

path
String

Returns

String[]

Applies to

ReadAllLines(String, Encoding)

public:
 static cli::array <System::String ^> ^ ReadAllLines(System::String ^ path, System::Text::Encoding ^ encoding);
public static string[] ReadAllLines (string path, System.Text.Encoding encoding);
static member ReadAllLines : string * System.Text.Encoding -> string[]
Public Shared Function ReadAllLines (path As String, encoding As Encoding) As String()

Parameters

path
String
encoding
Encoding

Returns

String[]

Applies to