using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace želva { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { int a = Int32.Parse(textBox1.Text); string cesta = ("kapradina"); FileInfo fi = new FileInfo(cesta); StreamReader sr = new StreamReader(fi.OpenRead()); while (sr.Peek() > -1) sr.Close(); } private void button2_Click(object sender, EventArgs e) { int b = Int32.Parse(textBox1.Text); string cesta = ("hello"); FileInfo fi = new FileInfo(cesta); StreamReader sr = new StreamReader(fi.OpenRead()); while (sr.Peek() > -1) sr.Close(); } private void button3_Click(object sender, EventArgs e) { int c = Int32.Parse(textBox1.Text); string cesta = ("sachovnice_mala"); FileInfo fi = new FileInfo(cesta); StreamReader sr = new StreamReader(fi.OpenRead()); while (sr.Peek() > -1) sr.Close(); } private void button4_Click(object sender, EventArgs e) { int d = Int32.Parse(textBox1.Text); string cesta = ("sachovnice_velka"); FileInfo fi = new FileInfo(cesta); StreamReader sr = new StreamReader(fi.OpenRead()); while (sr.Peek() > -1) sr.Close(); } } }