I'm loading a file name into a string and would like to cut off the file extension .txt, .exe, etc.. so it's only left with the name of the file.

What would I use,

I just learned the great use of left$, Mid$, Right$ yesterday but out of all of those the Right$ would be closest to what I need and 'say remove the last 4 characters instead of use them' but, that's not working,