C#写入文本到系统文件中

我需要在C:\Windows\System32\drivers\etc目录下的services文件的末尾处添加一条记录,尝试使用StreamWriter,但是不能添加成功。代码如下:

            string sText = "esri_sde17  5170/tcp    #ArcSDE for SqlServer";
            StreamWriter sw = new StreamWriter(strReadFilePath, true, System.Text.Encoding.Default);
            sw.Write(sText);
            sw.Flush();
            sw.Close();

请问该用什么方法好呢?