File.Close Method

Close the file handle. This is the same as using CloseHandle() or delete.

void Close()