Home  |  Delphi .net Home  |  System.Console  |  OpenStandardOutput Method
OpenStandardOutput  
Method  
Gets the Standard Output Stream writer
Console Class
System NameSpace
CF1.  Function OpenStandardOutput ( ) : Stream;
CF2.  Function OpenStandardOutput ( BufferSize : Integer; ) : Stream; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Gets the standard output 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
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

uses
  System.IO;

var
  outWriter : Stream;

begin
  outWriter := Console.OpenStandardOutput;

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

  // Close the file
  outWriter.Close;

  Console.ReadLine;
end.
Show full unit code
  Hello
 
 
Delphi Programming © Neil Moffatt All rights reserved.  |  Contact the author