public Form1() { InitializeComponent(); string path = MyIni.ReadIniData("Common", "path", "-1"); lab_path.Text = path; }
public MyData(string Name) { this.Name = Name; string sPrePath = MyIni.ReadIniData("Path", "DataInfoOffice", ""); //string sPrePath = @"../../../data/"; string Path = sPrePath + Name + ".csv"; FullName = Path; //RedFile(Path); RedFilePreFour(Path); //FileInfo fi = new FileInfo(Path); }
private void btn_Create_Click(object sender, EventArgs e) { string path = MyIni.ReadIniData("Common", "path", "-1"); if (path.Equals("-1")) { return; } //lua string luaNamePre = MyIni.ReadIniData("TaskType", TaskType, "1"); string fullName = path + "\\..\\lua\\[" + luaNamePre + "]" + TaskNameLua + ".lua"; File.WriteAllText(fullName, "", Encoding.UTF8); //csv string csvFullName = luaNamePre + "\\++TaskInfo.csv"; MessageBox.Show("成功"); }