Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!amdcad!amd!markg From: markg@amd.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Turboc and Indirection Message-ID: <4062@amd.UUCP> Date: Tue, 2-Jun-87 16:40:36 EDT Article-I.D.: amd.4062 Posted: Tue Jun 2 16:40:36 1987 Date-Received: Thu, 4-Jun-87 07:02:27 EDT References: <2157@husc6.UUCP> <2898@cit-vax.Caltech.Edu> Reply-To: markg@amd.UUCP (Mark Gorlinsky) Organization: Advanced Micro Devices Lines: 42 Keywords: Disks In article <2898@cit-vax.Caltech.Edu> kalra@cit-vax.UUCP (Devendra Kalra) writes: >Could any one tell me how to indirect files when in turbo C integrated >environment. Setting Command line to " < filename"does not help. > Within the Integrated Environment you can't via the Args option. But, you could alway modify your program to look for args passed or include the < filename on the command line (ie. tc sample.c main() { char buffer[128]; int numchars; while ((numchars = read(fileno(stdin), buffer, 128)) > 0) write(fileno(stdout), buffer, numchars); } 2. go into TurboC with the following command line. tc sample.c