Subj : Re: getting at FileName from *File To : borland.public.cpp.borlandcpp From : maeder@glue.ch (Thomas Maeder [TeamB]) Date : Wed Jul 23 2003 07:10 pm "Billly Pig" writes: > Within a function that receives a > *File parameter, is it possible to get the name of the associated file on > Windows? No. One reason is that there are FILE * with no file name at all, e.g. stdin, stdout and stderr, the result of a call to popen() etc. > I don't have access to the calling routine, so I can't just do the obvious > and pass the filenname as a parameter too. Why would you want to know the filename? .