Ok, if i have a string named Title, and it equals "C:\blah\foo\test.txt", how do i get Title to equal "test.txt". This is what i tried...
But it doesnt work.Code:strcpy(Title, szFileName); strrev(Title); Title[atoi(strchr(Title, '\\'))] = 0; strrev(Title);




Reply With Quote