static void Main(string[] args) { WriteToFile wr = new WriteToFile(); wr.DataWrite(); Console.ReadKey(); ReadFile sr = new ReadFile(); sr.DataRead(); }