| | |
how to open and text file on web from windows application
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Apr 2008
Posts: 9
Reputation:
Solved Threads: 0
Thanks for the replies.
I got the solution this way...
I got the solution this way...
C# Syntax (Toggle Plain Text)
url = "http:\\website\dir\sample.txt"; Uri uri = new Uri(url); //Create the request object WebRequest req = WebRequest.Create(uri); WebResponse resp = req.GetResponse(); Stream stream = resp.GetResponseStream(); StreamReader sr = new StreamReader(stream); string s = sr.ReadToEnd();
![]() |
Similar Threads
- Write Your First Application in Win32 Using Assembly (Assembly)
- IE7 Windows Automatically opening (Viruses, Spyware and other Nasties)
- No control Panel and Windows antivirus popups driving me crazy! (Viruses, Spyware and other Nasties)
- A agntsrvc.exe file error (Viruses, Spyware and other Nasties)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Re: Hijack log-WMP Internal application error ha occured (Viruses, Spyware and other Nasties)
- Stupid Search200 (Viruses, Spyware and other Nasties)
- Search200 (Web Browsers)
Other Threads in the C# Forum
- Previous Thread: Simple algorithm for making a PictureBox toggle between two pictures on Click_event.
- Next Thread: hi
| Thread Tools | Search this Thread |
.net access ado.net algorithm alignment array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom customactiondata database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ hospitalmanagementsystems httpwebrequest image index input install java label list listbox listener mandelbrot math mouseclick mysql networking operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






