WebRequest request = WebRequest.Create("http://somesite.com/private/myfile.txt");
WebResponse response = request.GetResponse();
using (Stream stream = response.GetResponseStream())
using (StreamReader reader = new StreamReader(stream))
{
string line = "";
while ((line = reader.ReadLine()) != null)
{
Console.WriteLine(line);
}
}
response.Close();
документ, еще один документ, ромашка
<textarea id='clear'>
</textarea>
<pre id='cleaner'>
</pre>
var clear = document.getElementById('clear');
var cleaner = document.getElementById('cleaner');
clear.oninput = function(){
cleaner.innerHTML = clear.value;
clear.value = cleaner.innerText;
192.168.92.147 srv-debian
192.168.92.147 shop.srv-debian.loc