281264 Messages: 270 Registered: June 2010 Location: Spain
How can I get the name of the file I have just, for instance, saved? AFAIK the value returned by the FileSel Ctrl is the full path of the file but not the name of the file. Also, the Get method does the same. Please correct me if I am mistaken.
cbpporter Messages: 1400 Registered: September 2007
String GetFileDirectory(const char *path); // with DIR_SEP at the end
String GetFileFolder(const char *path); // without DIR_SEP at the end, if not Win32 root
String GetFileTitle(const char *path);
String GetFileExt(const char *path);
String GetFileName(const char *path);