Recent

Author Topic: Opening standard streams with TFileStream (or any other TStream descendants)  (Read 3728 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8764
  • Programming + Glam Metal + Tae Kwon Do = Me
Is it possible? One thing for sure is that using empty string doesn't do it.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Try something like this:

MyStream := THandleStream.Create(StdInputHandle);

Leledumbo

  • Hero Member
  • *****
  • Posts: 8764
  • Programming + Glam Metal + Tae Kwon Do = Me
Working, thanks.

 

TinyPortal © 2005-2018