471,354 Members | 1,142 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

without extension

How to get a file name without extension?

Hrcko
Feb 8 '06 #1
2 13759
What I need is how to remove lust three simbols from a filename?
I put a full name into the database, and I want to show only file name
without extension.

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:ds**********@ss405.t-com.hr...
How to get a file name without extension?

Hrcko

Feb 8 '06 #2
>What I need is how to remove lust three simbols from a filename?

Use the System.IO.Path.GetFileNameWithoutExtension method. Better not
assume that the file extension is always three characters.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Feb 8 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Berislav Lopac | last post: by
14 posts views Thread by Marcin Ciura | last post: by
1 post views Thread by =?Utf-8?B?SlA=?= | last post: by
9 posts views Thread by Pygmalion | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.