WebClient wb = new WebClient();
string License = wb.DownloadString("DocumentSite");
if (License.Contains(LK.Text + UN.Text))
I want to search line by line and not the whole document
>Solution :
You can use the StringReader to step through the string line by line.
private async Task ReadLicenseAsync(string license)
{
using var textReader = new StringReader(license);
string line = string.Empty;
while ((line = await textReader.ReadLineAsync()) != null)
{
// TODO::Handle line
}
}