2010-08-22 66 views

回答

21
FileStream fs = File.Create("test.txt"); 
fs.Close(); 
File.SetAttributes(
    "test.txt", 
    FileAttributes.Archive | 
    FileAttributes.Hidden | 
    FileAttributes.ReadOnly 
    );