🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #96

redirecting standard I/O of console app from Parameters

#96
From: Hmmm
Date: Tue, 30 Mar 2004 17:38
15 lines
1438 bytes
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?
Technical Details
Message-ID: <aaa4810e.0403300938.68846eca@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews2.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10baee,38ff176ccba1a62d,start
X-Google-Attributes: gid10baee,public
X-Google-Thread: 10545b,38ff176ccba1a62d,start
X-Google-Attributes: gid10545b,public
X-Google-ArrivalTime: 2004-03-30 09:38:11 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews2.google.com!not-for-mail
From: forums@mail.bg (Hmmm)
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.ide
Subject: redirecting standard I/O of console app from Parameters
Date: 30 Mar 2004 09:38:10 -0800
Organization: http://groups.google.com
Lines: 15
Message-ID: <aaa4810e.0403300938.68846eca@posting.google.com>
NNTP-Posting-Host: 217.79.90.2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1080668291 7121 127.0.0.1 (30 Mar 2004 17:38:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 30 Mar 2004 17:38:11 +0000 (UTC)