Im automatically creating a folder with user information, but i have to make sure that there are no illegal characters and if there are i should replace it with a "0" but although it goes into my if statement it refuses to replace the invalid character.
here is the relevant code
Courage is not the absence of fear but rather the judgment that something is more important then fear. ~ Ambrose Redmond
Joined: Mar 22, 2005
String.replace does not alter the string you're passing to it; rather, it returns the result of the replacement operation. You want something like " fileName = fileName.replace(... "