📅  最后修改于: 2022-03-11 15:04:23.739000             🧑  作者: Mango
var path = Server.MapPath(@"~/TextFiles/ActiveUsers.txt");
using (System.IO.StreamWriter file = new System.IO.StreamWriter(path, true))
{
file.WriteLine(model.UserName.ToString());
}