Posted By

qrist0ph on 09/17/08


Tagged

io


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

umang_nine
LeeRJohnson
khouser


Append to a text file


 / Published in: C#
 

  1. private static void writeToFile(String s)
  2. {
  3. StreamWriter SW;
  4.  
  5. SW = File.AppendText("mdxQuery.txt");
  6. SW.WriteLine("\n\n-------------------------");
  7. SW.WriteLine(s);
  8. SW.WriteLine("-------------------------");
  9. SW.Close();
  10.  
  11.  
  12. }

Report this snippet  

You need to login to post a comment.