| | |
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 array barchart bitmap box broadcast buttons c# check checkbox client color combo combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees developer development draganddrop drawing encryption enum equation event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mathematics mouseclick mysql nargalax operator path photoshop picturebox pixelinversion post programming radians regex remote remoting restore richtextbox save saving serialization server sleep socket sql stack statistics stream string table tcp text textbox thread time timer update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






