Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!hplabs!hpcc05!hpyhde4!hpycla!hpcuhc!hpcupt3!defaria@hpcupt3.cup.hp.com From: defaria@hpcupt3.cup.hp.com (Andy DeFaria) Newsgroups: comp.lang.pascal Subject: Text Files, I/O Redirection Message-ID: <45670017@hpcupt3.cup.hp.com> Date: 21 May 91 17:44:07 GMT Organization: Hewlett Packard, Cupertino Lines: 16 I have been having three problems lately in TP: 1) How do you perform I/O redirection using Exec? I remember this being discussed and had thought that my home-brewed shell did this properly then found out it doesn't and the posting has since timed out. I thought that I needed to Exec Command.Com and specify the ">" or "|" options in the Options parameter but this not working. 2) How do you get the name of an open text file from AFile : Text variable? 3) The FileSize function doesn't work on Text files. How can I easily and efficiently get the FileSize (in bytes) of a Text file? Thanks