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...

Code:
strcpy(Title, szFileName);
strrev(Title);
Title[atoi(strchr(Title, '\\'))] = 0;
strrev(Title);
But it doesnt work.