Home  |  Delphi .net Home  |  System.Console  |  OpenStandardError Method
  
OpenStandardError  
Method  
Gets the Error Output Stream writer
Console Class
System NameSpace
CF1.  Function OpenStandardError : Stream; Static;
CF2.  Function OpenStandardError ( BufferSize : Integer ) : Stream; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Gets the standard error text stream.
Notes
Static methods are not methods of an object - they are simply class functions or procedures available at any time.
Microsoft MSDN Links
System
System.Console
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

uses
  System.IO;

var
  errWriter : Stream;

begin
  errWriter := Console.OpenStandardError;

  // Write to the standard error stream
  errWriter.Write([Ord('H'), Ord('e'), Ord('l'),
                  Ord('l'), Ord('o'), 13, 10], 0, 7);

  // Close the file
  errWriter.Close;

  Console.ReadLine;
end.
   Hello
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author