manoj kumar

manoj kumar

  • NA
  • 147
  • 139.8k

How to make a Unique folder name?

Oct 26 2010 10:57 PM
how it possible?


 HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.google.co.in/");
        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
        Stream receiveStream = response.GetResponseStream();
        StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
        StreamWriter sw = new StreamWriter("E:/Content/{0:ddMMyyhhmmss}{1},DateTime.Now/.text");
        String line;
        while ((line = readStream.ReadLine()) != null)
        {
            sw.WriteLine(line);
        }
        sw.Close();

Answers (1)