是否有办法重开流作家,而不给他写新文章? 因为目前,当要求撰写人时,主流作者的笔记是笔记本。
public void WriteEven()
{
StreamWriter writer = new StreamWriter(FILENAME);
for (int i = 0; i < array.Length; i+= 2)
{
Console.WriteLine(array[i]);
writer.WriteLine("EvenNumbers: " + array[i]);
}
writer.Close();
}
public void WriteOdd()
{
StreamWriter writer = new StreamWriter(FILENAME);
for (int i = 1; i < array.Length; i += 2)
{
Console.WriteLine(array[i]);
writer.WriteLine("OddNumbers: " + array[i]);
}
writer.Close();
}
增 编