I\'m receiving a string from an external process. I want to use that String to make a filename, and then write to that file. Here\'s my code snippet to do this:
You could remove the invalid chars ( '/', '\', '?', '*') and then use it.