Files Using System.IO; s String path= @"D:\Example.txt"; Example.txt DS DAA DotNet C# if (File.Exists(path)) { console.writeline("File is present on disk"); } e.g String str; str= File.ReadAllText(path); File.Delete(path); Copy File String path= @"D:\Example.txt"; String copypath= @"E:\Example1.txt"; File.copy(path,copypath) Streams string []subject = new String[]{"DS","DAA","DotNet"}; using (StreamWriter sw = new StreamWriter("D:\Example.txt")) { foreach(string s in subject) { sw.writeline(s); } } console.writeline("File conteents are") String line; using (StreamReader sr = new StreamReader("D:\Example.txt")) { while((line= sr.readline) !=null) { console.writeline(line); } }