请问一个VB语句转成C#同类操作的语句
VB:
print #a as OutputFile
print #a "ABC "
print #a "End "
C#该怎么写?
------解决方案--------------------C#使用
System.IO.StreamWriter sr = new System.IO.StreamWriter( "path ");
sr.Write( "xx ");
sr.Close();
------解决方案--------------------sr.WriteLine( "xx ");