Hi babu, If folder is there it will be created .If the folder doesn't exists thn i need to create the folder.Is there any class for creating fodler.It can be folder in a folder.Can i do tht using .net
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of BabuLives Sent: Wednesday, June 06, 2007 08:28 PM To: .NetIndia Subject: [.NetIndia] Re: How to create a Text File using VB.NET Hi Ram, use this code, using(FileStream fs = File.Create(FolderName + "\\" + FileName)) { using (StreamWriter sw = new StreamWriter(fs)) { sw.Write(str.ToString()); } //sw.Close(); // fs.Close(); } Regards, Satheesh On Jun 6, 7:39 pm, Srivatsa <[EMAIL PROTECTED]> wrote: > Dude just check out the MSDN documentation for StreamWriter class > > On 6/6/07, Ramkumar A K <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > Can anybody send me code for creating a text file using .net in > > the Specified Location. > > > Thanks and Regards > > *Ramkumar.A.K *- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups ".NetIndia" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/TechdotNetIndia?hl=en -~----------~----~----~----~------~----~------~--~---
