iharrold
April 15th, 2009, 09:42 PM
Question.
Anyone have an idea, snippet, on how to get the target file of a symbolic linked file into a std::string?
i.e. for timezone I have:
ln -sf /usr/share/zoneinfo/US/Central /usr/share/zoneinfo/localtime
I want to look at the symbolic file "/usr/share/zoneinfo/localtime" and get the target string of "/usr/share/zoneinfo/US/Central"
Any ideas of a library call to do this?
Anyone have an idea, snippet, on how to get the target file of a symbolic linked file into a std::string?
i.e. for timezone I have:
ln -sf /usr/share/zoneinfo/US/Central /usr/share/zoneinfo/localtime
I want to look at the symbolic file "/usr/share/zoneinfo/localtime" and get the target string of "/usr/share/zoneinfo/US/Central"
Any ideas of a library call to do this?