User Profile

Collapse

Profile Sidebar

Collapse
relikangus
relikangus
Last Activity: Nov 14 '09, 08:39 AM
Joined: Nov 1 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • relikangus
    replied to save textbox value
    ok

    1. make sure you add the using System.IO in the directives at the top. you need that to do reading/writing to files on the systm

    String theData = textbox1.Text;

    FileStream aFile = new FileStream("myT extFile.txt", FileMode.OpenOR Create);
    StreamWriter sw = new StreamWriter(aF ile);
    sw.WriteLine(th eData);
    sw.close();


    i'm assuming that the text box is called t...
    See more | Go to post
    Last edited by relikangus; Nov 1 '09, 07:45 PM. Reason: clarifiation

    Leave a comment:


  • relikangus
    replied to save textbox value
    you mean you wanna save the text that is in the text-box into a (.txt) file that may be opened in notepad?
    See more | Go to post

    Leave a comment:


  • How do i do two consecutive WebRequest.GetResponse ?

    i'm new to c#

    the following is my code:
    *************** *************** ************
    HttpWebRequest myRequest = (HttpWebRequest )WebRequest.Cre ate("http://www.google.com" );

    HttpWebResponse myResponse = (HttpWebRespons e)myRequest.Get Response();
    myResponse.Clos e();

    myRequest = (HttpWebRequest )WebRequest.Cre ate("http://www.mns.com");
    myResponse = (HttpWebRespons e)myRequest.Get Response();...
    See more | Go to post
No activity results to display
Show More
Working...