|
|
|
#1
|
||||
|
||||
|
Quote:
The usage for xtool goes like this xtool command input output "-" denotes stdin/stdout depending where you put it. This is how I have written it Code:
if ParamArg[2] = '-' then
Output := THandleStream.Create(GetStdHandle(STD_OUTPUT_HANDLE))
else
Output := TFileStream.Create(ParamArg[2], fmCreate);
Quote:
is because what if you can accept input as stdin then the next program requires an existing file it then becomes something like this xtool command - output or if input is a file and output is required as stdout it becomes xtool command input - if pipes are involved it means stdin and stdout takes place which is why it is xtool command - - Last edited by Razor12911; 08-08-2019 at 15:35. |
| Sponsored Links |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Information about ZTool | 78372 | Conversion Tutorials | 72 | 10-10-2019 06:27 |
| ztool info | doofoo24 | Conversion Tutorials | 2 | 24-12-2017 22:08 |
| ZTool (Ultimate Precompressor) | Razor12911 | Conversion Tutorials | 16 | 20-07-2017 07:56 |