What is the simplest way to get the directory that a file is in? I\'m using this to find the working directory.
string filename = \"C:\\MyDirectory\\MyFile.b
This is proper winapi solution:
CString csFolder = _T("c:\temp\file.ext"); PathRemoveFileSpec(csFolder.GetBuffer(0)); csFolder.ReleaseBuffer(-1);