Utilities.ReadUntil(StreamReader, String[]) Method

Definition

Reads until some contents is encountered, or the end of the stream is reached.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ ReadUntil(System::IO::StreamReader ^ reader, ... cli::array <System::String ^> ^ contents);
public static string ReadUntil (this System.IO.StreamReader reader, params string[] contents);
static member ReadUntil : System.IO.StreamReader * string[] -> string
<Extension()>
Public Function ReadUntil (reader As StreamReader, ParamArray contents As String()) As String

Parameters

reader
StreamReader

The StreamReader to use for reading.

contents
String[]

The contents to search for in the lines being read.

Returns

String

The line on which some of the contents was found.

Applies to