From owner-freebsd-questions Thu Nov 18 15: 1:13 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gainesville.usda.ufl.edu (gainesville.usda.ufl.edu [128.227.252.197]) by hub.freebsd.org (Postfix) with SMTP id BDB4E154F0 for ; Thu, 18 Nov 1999 15:01:10 -0800 (PST) (envelope-from BJohnson@gainesville.usda.ufl.edu) Received: by gainesville.usda.ufl.edu with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.993.5) id <01BF31EE.0DA8FFA0@gainesville.usda.ufl.edu>; Thu, 18 Nov 1999 17:55:09 -0500 Message-ID: From: "Johnson, Bob" To: "'questions@freebsd.org'" Cc: "'rover@lglobus.ru'" Subject: Re: Is there correct way for program to read from itself? Date: Thu, 18 Nov 1999 17:55:07 -0500 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.993.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Maybe it's time to ask: What programming language are you using? On Thu, 18 Nov 1999 23:28:46 +0300 Oleg V. Volkov wrote: >On Thu, Nov 18, 1999 at 03:23:24PM -0500, Greg Lehey wrote: >> >>> Is there correct way for porgram to read from it's own file? >> >> I'm not sure I understand. What do you mean by "it's own file"? >> >> If you mean the object file, sure. Where's the problem? >> > I mean this situation: >> > I have some program /usr/local/bin/someprog. Is there a way for it >> > to read from itself (from /usr/local/bin/someprog). >> Sure, that's what I said. What do you expect to find? > >Could you give me short example? Bob Johnson Local Network Administrator USDA - ARS - CMAVE Gainesville, Florida 352-374-5856 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message