Code4bin Delphi 2021 ●

except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end;

uses System.SysUtils;

program BinaryFileExample;