Why this c# program from msdn failed?# DotNet - 窗口里的风景
c*r
1 楼
The following program example are from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiofileclassgetattributestopic.asp
After I compile on VS2005, and run it in console, got error:
The process failed: System.IO.IOException: The process cannot access the file
'c
It will run well when MyTest.txt exists.
My original question is, I want to create empty file and change its
lastwritetime, but it always give error unless I wrap the create line in
using(FileStream
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiofileclassgetattributestopic.asp
After I compile on VS2005, and run it in console, got error:
The process failed: System.IO.IOException: The process cannot access the file
'c
It will run well when MyTest.txt exists.
My original question is, I want to create empty file and change its
lastwritetime, but it always give error unless I wrap the create line in
using(FileStream