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
-~----------~----~----~----~------~----~------~--~---