如果在我的计算器程序中它 = 0,如何跳过将值写入文件
将数组写入文件的过程
public void SaveArrayToFile()
{
int count;
var writer = new System.IO.StreamWriter("C:/calc/calculations.txt",false);
for (count = 0; count <= Results.Length -1 ; count++)
{
if (Results[count] == 0)
{
// problem
}
writer.Write(Results[count]);
writer.WriteLine();
}
writer.Dispose();
任何帮助都会受到重视