using (var file = new StreamReader("C:\\myfile.txt")) {...}