簡單來說就是一個 存 txt 系列
建立一個 function
public void Create_String_To_File(string path_Result_out, string Write_String)
{
using (StreamWriter sw = File.CreateText(path_Result_out))
{
sw.Write(Write_String);
}
}
來建一個按鈕試看看吧
public void Create_String_To_File(string path_Result_out, string Write_String)
{
using (StreamWriter sw = File.CreateText(path_Result_out))
{
sw.Write(Write_String);
}
}
private void button_test_6_Click(object sender, EventArgs e)
{
Create_String_To_File(textBox_Text_title.Text, textBox_Text_FrontPage.Text);
}
試看看吧: