How to Create an output text file and save it for a window application?

  • Thread starter Thread starter Ghada Ayed via DotNetMonster.com
  • Start date Start date
G

Ghada Ayed via DotNetMonster.com

Hi

Could anybody help me to create an output text file and save it for a
window application??

thanx
 
For example:

System.IO.StreamWriter file = System.IO.File.CreateText("myfile.txt");
file.Write("blah");
file.Close();

Regards.
 
Ghada Ayed via DotNetMonster.com said:
Could anybody help me to create an output text file and save it for a
window application??

It would help if you'd say where you're having trouble. You almost
certainly want to use a StreamWriter.
 
Back
Top