Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string path = "C:\\Ip.txt";
            string t    = FileReadWrite.ReadFile(path);

            MessageBox.Show(t);
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string filename = "C:\\Ip.txt";

            if (checkIP(textBox1.Text, "9999"))
            {
                string data = textBox1.Text;
                FileReadWrite.WriteFile(filename, data);
                this.Dispose();
            }
        }