🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4956

Re: removing file extension

#4956
From: Hans Galema
Date: Thu, 13 Oct 2005 21:47
20 lines
1584 bytes
Vladimir Stefanovic wrote:

> ...  I never thought that I could accomplish that
> easier with ChangeFileExt(), although I use it
> every day...
> 
>    AnsiString ExtractFileNameWithoutExtension( AnsiString FILE )
>    {
>       return ( ExtractFileName ( ChangeFileExt( FILE, "" ) ) );
>    }

But there is more.
#include <stdio.h>
FILE *fopen(const char *filename, const char *mode);

FILE is already defined for decades. Moreover you mean a path.

AnsiString ExtractFileNameWithoutExtension( AnsiString Path );

Hans.
Technical Details
Message-ID: <434ed592$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <434e9f72@newsgroups.borland.com> <434ea042$1@newsgroups.borland.com> <434eb000@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ad1068ee1c4d7fab
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 13 Oct 2005 23:47:29 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: removing file extension
References: <434e9f72@newsgroups.borland.com> <434ea042$1@newsgroups.borland.com> <434eb000@newsgroups.borland.com>
In-Reply-To: <434eb000@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <434ed592$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1129239954 145.98.201.248 (13 Oct 2005 14:45:54 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail