Getting filename (or deleting file) using file handle

后端 未结 4 1785
感情败类
感情败类 2020-12-08 01:46

Is there a possibility to obtain filename from file handle? Or how can I delete file having only a handle?

4条回答
  •  既然无缘
    2020-12-08 02:08

    To achieve this, you will need to create a wrapper that stores the file name. A file handle has no context of the filename it was created from.

提交回复
热议问题