Why do none of these seem to work?
String.Replace("/", "_");
String.Replace("//", "_");
String.Replace(((char)47).ToString(), "_");
The string named “FileName” still says “MyFile 06/06/09”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you assigning the FileName.Replace to something? It returns the new FileName, it doesn’t actually change it.