I want to write a program that do this:
It should receive the URL (Wikipedia 's URL) from input and download that web page
And read the content of that page and save it into a file
please help me
Thanks
aseeman
0
Newbie Poster
Recommended Answers
Jump to PostThis is an option. It is widely used.
I happened to use it a day ago..WebRequest request = WebRequest.Create("url"); WebResponse response = request.GetResponse(); Stream current_data = response.GetResponseStream(); string content = ""; using (StreamReader sr = new StreamReader(response)) { content = sr.ReadToEnd(); }
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.