How to split file name and the path name (was: Re: wxMenu and
wxUpdateUIEvent)
SAM
nospam at i.net
Tue Feb 5 20:33:34 PST 2008
news:21751119.1202270814353.JavaMail.root at elwamui-muscovy.atl.sa.earthlink.net...
> Sorry, send under the wrong subject line....
>
> -----Original Message-----
>>From: Igor Korot <>
>>Sent: Feb 5, 2008 10:06 PM
>>To: wx-users at lists.wxwidgets.org, wx-users at lists.wxwindows.org
>>Subject: Re: wxMenu and wxUpdateUIEvent
>>
>>Hi, ALL,
>>Is there a way to get a file name only from the complete
>>path that is represented by string? Something like, e.g.:
>>
>>"test.doc",
>>
>>out of
>>
>>"C:\Texts\test.doc".
>>
>>Problem is I need to keep the original file name, and thought
>>that there is an easy way than just tokenize it or looking for
>>the "." symbol....
>>
>>Thank you.
>>
Have a look in the docs: Alphabetical class
reference\wxFileName::GetFullName()
Also Functions\File functions\wxPathOnly() and wxSplitPath() (obsolete)
More information about the wx-users
mailing list