A.Create the file by using a new FileStream object by passing the FileSecurity object as a parameter to the FileStream constructor.
B.Create a new FileSecurity object.
C.Apply the permissions by using the File class.
D.Create a new FileSystem Access Rule object for each permission that you need,and add each rule to the FileSecurity object.
E.Create a new FileSystem Audit Rule object and add it to the FileSecurity object.