Im generating various strings and then I want to save files with generated strings as filenames. Sometimes generated string has got various chars which arent allowed to use in filename.
Is there any ready to use class or sth which can clean up string from such characters ?
Have a look at
Path.GetInvalidPathChars() and Path.GetInvalidFileNameChars()