I have some code that when you click on the filebox, it adds the filename to a path i.e. D:\Quake2\baseq2\maps\default.bsp. Is there a way to trim off the last 4 characters? (in bold).

Thanks