System.IO.File.Create locking a file

Solution 1:

Try this:

System.IO.File.Create(FullFName).Close();

Solution 2:

File.Create returns a FileStream. You should use it like this:

using (FileStream fs = File.Create(path))
{
    //you can use the filstream here to put stuff in the file if you want to
}