I had put next try-catch block yo my code void readfile(string name) { try { auto filearray = read(name); writeln(name); writeln(filearray); } catch (Exception e) { writeln("CATHCHED %s", e.msg); } } Am I right with it's place? I get to console only some crap.