Node:StdErr, Next:Str, Previous:StandardOutput, Up:Reference

### StdErr

#### Synopsis

    var
      StdErr: Text;

#### Description

The `StdErr` variable is connected to the standard error file handle. To report errors, you should prefer `WriteLn (StdErr, 'everything wrong')` over `WriteLn ('everything wrong')`.

#### Conforming to

`StdErr` is a GNU Pascal extension.

#### Example

    program StdErrDemo;
    var
      Denominator: Integer;
    begin
      ReadLn (Denominator);
      if Denominator = 0 then
        WriteLn (StdErr, ParamStr (0), ': division by zero')
      else
        WriteLn ('1 / ', Denominator, ' = ', 1 / Denominator)
    end.

#### See also

StandardError, Output, Input.