- Yasaklandı
- #1
private static List<string> DownloadLines(string hostUrl)
{
List<string> strContent = new List<string>();
var webRequest = WebRequest.Create(hostUrl);
using (var response = webRequest.GetResponse())
using (var content = response.GetResponseStream())
using (var reader = new StreamReader(content))
{
while (!reader.EndOfStream)
{
strContent.Add(reader.ReadLine());
}
}
return strContent;
}
var mLines = DownloadLines("https://pastebin.com/blabla");
var firstLine = mLines[0];
var secondLine = mLines[1];
teşekkürler.googlede ufak bi araştırmayla sonuç bulabilirsin.
C#:private static List<string> DownloadLines(string hostUrl) { List<string> strContent = new List<string>(); var webRequest = WebRequest.Create(hostUrl); using (var response = webRequest.GetResponse()) using (var content = response.GetResponseStream()) using (var reader = new StreamReader(content)) { while (!reader.EndOfStream) { strContent.Add(reader.ReadLine()); } } return strContent; }
Kullanım
C#:var mLines = DownloadLines("https://pastebin.com/blabla"); var firstLine = mLines[0]; var secondLine = mLines[1];
pasterbin'de ne paylaşılır düşün bakalımNe Programı Yapıosunki
teşekkür ederim xmazecim <3googlede ufak bi araştırmayla sonuç bulabilirsin.
C#:private static List<string> DownloadLines(string hostUrl) { List<string> strContent = new List<string>(); var webRequest = WebRequest.Create(hostUrl); using (var response = webRequest.GetResponse()) using (var content = response.GetResponseStream()) using (var reader = new StreamReader(content)) { while (!reader.EndOfStream) { strContent.Add(reader.ReadLine()); } } return strContent; }
Kullanım
C#:var mLines = DownloadLines("https://pastebin.com/blabla"); var firstLine = mLines[0]; var secondLine = mLines[1];
Kendime UI yapıyorumNe Programı Yapıosunki