Alright, I need to strip the four-character extension from the end of a filename, but VB.NET 2005 seems to have broken the "Remove()" method for strings. If not, what is wrong here. If it is broken, how the heck can I do this? In C++ it's simple, but VB.NET makes it hard by using a string class.
'Setup the configuration filename
arrayString = Me.exeString.Split("".ToCharArray())
fileString = ".Config" & arrayString(arrayString.Length() - 1)
fileString.Remove(fileString.Length() - 4)
fileString += ".486"
Assume that "Me.exeString" was set to "C:MyAppMyApp.exe" for this example. The "fileString" variable is somehow being set to "MyApp.exe.486" instead of "MyApp.486" even though I have used the remove method to strip the last four characters from the string. Ideas?