close

 

本來拿寫修改記錄檔用的

   1: StreamWriter sw = File.AppendText(filepath);  //AppendText 使用附加方式
   2: sw.WriteLine("line 1 : "+Time.Now.ToString("yyyy/MM/dd hh:mm:ss"));
   3: sw.WriteLine("line 2 : "+Time.Now.ToString("yyyy/MM/dd hh:mm:ss"));
   4: sw.Flush();
   5: sw.Close();
arrow
arrow
    文章標籤
    asp.net StreamWriter
    全站熱搜
    創作者介紹
    創作者 jason0324 的頭像
    jason0324

    Js 片段記憶回顧中心

    jason0324 發表在 痞客邦 留言(0) 人氣()