3
Reply

writing Chr(9) to text file

paddylast

paddylast

Dec 8 2004 4:56 PM
7.8k
I'm trying to write Chr(9) to text file: StreamWriter sw = new StreamWriter(@"c:/mcad/audit.txt"); sw.WriteLine("col1"+Chr(9)+"col2"+Chr(10)); sw.WriteLine("col1"+Chr(9)+"col2"+Chr(10)); sw.Close(); but this gives error on compile due to Chr(9). I am using System.IO. Any advice appreciated. Thanks

Answers (3)