我们遇到了一个服务器的问题,并且它使用了StreamWriter类.有没有人遇到类似下面的问题?如果是这样,解决问题的解决方案是什么?
using( StreamWriter logWriter = File.CreateText( logFileName ) ) { for (int i = 0; i < 500; i++) logWriter.WriteLine( "Process completed successfully." ); }
Process completed successfully. ... (497 more lines) Process completed successfully. Process completed s
解决方法
无法重现这一点.
在正常情况下,这不应该也不会失败.
>这是失败的实际代码吗? “完成过程”一文表明它是一个摘录.>涉及任何线程?>网络驱动还是本地?>等