int start=FileArr.LastIndexOf('.');
file=FileArr.Remove(start, FileArr.Length);
In bold is the problem. I cannot figure out a way for Remove to just go to the end of the sting, without going through alot more trouble. There should be some kind of method to do it but what is it. .Length returns the length of the whole string and an error is produced.
file=FileArr.Remove(start, FileArr.Length);
In bold is the problem. I cannot figure out a way for Remove to just go to the end of the sting, without going through alot more trouble. There should be some kind of method to do it but what is it. .Length returns the length of the whole string and an error is produced.