How do I remove the file Extension from a string?
#7

If you have only 1 dot in the filename, then it's easy enough;
pawn Код:
new filename[32] = example.txt,
strdel(filename, strfind(filename, ".", true), strlen(filename))
Reply


Messages In This Thread
How do I remove the file Extension from a string? - by Sasino97 - 21.10.2011, 14:15
Re: How do I remove the file Extension from a string? - by Max_Coldheart - 21.10.2011, 14:26
Re: How do I remove the file Extension from a string? - by CyNiC - 21.10.2011, 14:30
Re: How do I remove the file Extension from a string? - by Sasino97 - 21.10.2011, 14:48
Re: How do I remove the file Extension from a string? - by Max_Coldheart - 21.10.2011, 14:49
Re: How do I remove the file Extension from a string? - by CyNiC - 21.10.2011, 15:02
Re: How do I remove the file Extension from a string? - by Vince - 21.10.2011, 15:17
Re: How do I remove the file Extension from a string? - by 0x5A656578 - 21.10.2011, 15:19
Re: How do I remove the file Extension from a string? - by CyNiC - 21.10.2011, 15:28
Re: How do I remove the file Extension from a string? - by Sasino97 - 21.10.2011, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)