Luke6
public text v1 · immutableclass FileEngine
{
private String path = "";
public void LoadFile(String path)
{
this.path = path;
StreamReader sr;
try
{
sr = File.OpenText(this.path);
}
catch (FileNotFoundException e)
{
throw (new UserExcept("Brak pliku!\n" + e.Message)); //It stops on this line ....
}
catch (Exception e)
{
throw (new UserExcept(e.Message));
}
}
}