what is the shortest and safest way to encrypt a file in c#?

Is there any built in function to excrypt a file in c#?
I have made an application that stores some confedential information in that file i want to encrypt that file so that the content remains safe and i dont want the file to be deleted by others?
help me with this!!
[277 byte] By [sigme] at [2007-12-16]
# 1
System.IO.File.Encrypt(string filePath)

You cannot prevent someone with the necessary privileges from deleting a file.

VijayeRaji at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...