I Need to write a Try-Catch-Finally. First of all im new to Programming. Back to the Problem.
In the Try-Block i want to open a Text that doesn't exist.
in the Catch-Block a Messagebox should show up with the FileNotFoundException.
and I still dont know what I should put in the Finally-Block.
try
{
FileStream File = new FileStream("beispiel.txt", FileMode.Open);
}
catch (FileNotFoundException fnfex)
{
//MessageBox with fnfex
}
finally
{
//idk
}
Thanks