1
Answer

How to make a Unique folder name?

manoj kumar

manoj kumar

14y
11.8k
1
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)