如何从 .txt 文件中搜索加载和替换数据并显示它
我在 txt.file 中的数据是
1010w23#Mild#UnknwonStreet#001234521
我想用这个来改变它
1010w34#Mild#UnknownStreet#001235421
我很有趣的 Windows 窗体应用程序,我是 C# 的新手
我用这个保存数据
string[] dataEmployee = new string[4];
dataEmployee[0] = txtIdEmployee.Text;
dataEmployee[1] = txtName.Text;
dataEmployee[2] = txtAddress.Text;
dataEmployee[3] = txtContact.Text;
string.Join("#", dataEmployee);
TextWriter writeDataEmployee = new StreamWriter(@"dataemployee.txt", true);