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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top