Utilities.ReadUntil(StreamReader, String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The line on which some of the contents was found.