|
-
June 15th, 2012, 08:57 AM
#2
Re: just get filename from wstring?
 Originally Posted by ekhule
Hello,
I have a file path in a wstring like this:
wstring pathName = L"c:\windows\system\test.exe";
I want to be able to geta new wstring that just contains "test" from this wstring.
How can I do that? Can someone provide example code?
Regards,
Ellay K.
If you are using Windows, use the _tsplitpath function.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|