using System.IO; public class IoError { public static void Main() { StreamReader f; try{ f = new StreamReader("DoesNotExist.data"); }catch(IOException e) { System.Console.WriteLine(e); } f = new StreamReader("DoesNotExist.data"); } }
using System.IO; public class IoError { public static void Main() { StreamReader f; try{ f = new StreamReader("DoesNotExist.data"); }catch(IOException e) { System.Console.WriteLine(e); } f = new StreamReader("DoesNotExist.data"); } }