private void button1_Click(object sender, EventArgs e)
{
var parser = new FileIniDataParser();
IniData data = parser.ReadFile(textBox1.Text + ".ini");
data[textBox2.Text][textBox3.Text] = textBox4.Text;
parser.WriteFile(textBox1.Text + ".ini", data);
}
private void button2_Click(object sender, EventArgs e)
{
var parser = new FileIniDataParser();
IniData data = parser.ReadFile(textBox1.Text + ".ini");
string useFullScreenStr = data[textBox2.Text][textBox3.Text];
// useFullScreenStr contains "true"
//bool useFullScreen = bool.Parse(useFullScreenStr);
label4.Text = useFullScreenStr;
}
?
参考链接
特此记录
anlog
2024年1月9日
?