Share information between open and read

Hi everyone! I need to share file path between open and read. How I can do it, is it possible?

Hi,

Your request is not clear.
Open function needs a file path. Read function needs the file handle created by open.

Nicolas