public void wirte()
    {
        try
        {
            StreamReader sr = new StreamReader("c:\\Variables.txt");
            string content = sr.ReadToEnd();
            sr.Close();

            StreamWriter sw = new StreamWriter("c:\\Variables.txt", false, Encoding.Unicode);
            string NextLine = "This is the appended line.";

            sw.Write(content + ControlChars.NewLine + NextLine);
            sw.Close();
        }
        catch(Exception ex)
        {
            Response.Write(ex.Message);
        }
        finally
        {


        }

    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-09-04
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2021-07-22
  • 2021-09-05
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案