Article View: comp.os.msdos.programmer
Article #4036io redirection
From: Rob Wedlock
Date: Mon, 24 Dec 1990 00:28
Date: Mon, 24 Dec 1990 00:28
22 lines
1299 bytes
1299 bytes
Hi & happy holidays! Im trrying to write a short prgram in assmebler, briefly, it: 1. read in a file name using int 21 func 3fh handle 1 (stdin) 2. convert that string to asciiz 3. open the file with int 21 func 3dh ( and exit if err, i.e. carry) 4. dump out the file by reading with func 3fh, and writing to stdout (handle 1) with function 40h. 5. close the file with func 3eh 6. exit with func 4ch Now this does EXACTLY what it should when called from the dos prompt at my computer. However, under the following circumstances, it reads no filename at step 1 therefore, exits at step 3: 1. When run from a dos shell on com2 on another machine. 2. With output redirected to a file, e.g. C:>dumpfile >test.txt I thought for sure writing to stdout would take care of this automatically? Can somone point me in the right direction for an answer??? thanks!
Technical Details
Message-ID:
<2035@beguine.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!mcnc!beguine!Rob.WedlockShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!mcnc!beguine!Rob.Wedlock From: Rob.Wedlock@samba.acs.unc.edu (Rob Wedlock) Newsgroups: comp.os.msdos.programmer Subject: io redirection Keywords: io redirection Message-ID: <2035@beguine.UUCP> Date: 24 Dec 90 00:28:27 GMT Sender: usenet@beguine.UUCP Lines: 22