redirecting standard I/O of console app from Parameters

From: Hmmm (forums_at_mail.bg)
Date: 03/30/04


Date: 30 Mar 2004 09:38:10 -0800

i wrote a console app with delphi 7
in prompt i coul write this

myapp.exe < data.in > result.out

so where there is readln in the code, this will be read from "data.in"
file, and where there is writeln, it will be write to "result.out"
file.

is there way to do this redirection without using prompt (When in
delphi IDE i press F9, standard input to come from data.in and so on).
In Run->Parameters... in Parameters text box i type this: < data.in >
result.out, but it doesnt work

any ideas?



Relevant Pages

  • RE: Can Delphi and VStudio CoExist On A Machine?
    ... > am using VStudio for a project but I need to learn Delphi. ... The registry key about which you are ... answer yes to this prompt, because Visual Studio just changes it back ... Since only one JIT debugger can be active at the same time, ...
    (microsoft.public.dotnet.general)
  • redirecting standard I/O of console app from Parameters
    ... in prompt i coul write this ... so where there is readln in the code, this will be read from "data.in" ... delphi IDE i press F9, standard input to come from data.in and so on). ...
    (borland.public.delphi.ide)
  • Re: ModalMaker Code Explorer problem ...................................
    ... you must save MMX as visible in all ... This might not be applicable to Delphi 2005: ... Then it will prompt you to save a desktop name. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: licenses.licx where does it go?
    ... > Delphi 8, create a winforms project ... > Now, exit delphi 8. ... Did you get a prompt to save the project because it was modified? ... have, and if you check "no", the licx file will not be created. ...
    (borland.public.delphi.ide)
  • Re: Console Mode Bug
    ... nag, eag, ads, rba: double; ... it works perfectly in Delphi 2007. ... Press F1 on ReadLn and double check that you have the correct units included. ...
    (alt.comp.lang.borland-delphi)