How to get filename based on file pointer

J

Junmou Zhang

Guest
A file is open and is assigned to file handle
fp=infile("~/1.txt")
How can get the filename if I only know the file handle "fp"?

Thanks
 
get_filename(fp)

Andrew.

On 16 Jun 2004 13:09:40 -0700, zhangjunmou@hotmail.com (Junmou Zhang) wrote:

A file is open and is assigned to file handle
fp=infile("~/1.txt")
How can get the filename if I only know the file handle "fp"?

Thanks
--
Andrew Beckett
Senior Technical Leader
Custom IC Solutions
Cadence Design Systems Ltd
 

Welcome to EDABoard.com

Sponsor

Back
Top