how to extract file path from a table of file

March 13, 2011 at 03:08:30
Specs: Windows XP
i have created a file in c++ which lists all files present in a directory with their relevant information such as name , type of file and file path, now i want to extract the path of a specified file so that it may be passed as an argument to be opened...

See More: how to extract file path from a table of file

Report •


#1
March 13, 2011 at 07:29:38
Easiest method: Find the last occurrence of "\". Anything before it is the path. Anything after it is the file.

How To Ask Questions The Smart Way


Report •

#2
March 15, 2011 at 14:37:30
thanks but multiple paths are listed there so how to tell the program which path to extract?

Report •
Related Solutions


Ask Question