How to get filename based on file pointer

Discussion in 'Cadence' started by Junmou Zhang, Jun 16, 2004.

  1. Junmou Zhang

    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
     
    Junmou Zhang, Jun 16, 2004
    #1
  2. get_filename(fp)

    Andrew.

     
    Andrew Beckett, Jun 16, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.