Illegal Characters In File Path C, ) and then try to delete the parent folder.

Illegal Characters In File Path C, When you receive the malformed string is too late. that path should be fine, I'm trying to save the file to that path then read from it with the streamreader and attach to email as an attachement. NOTE: I needed to validate a path string, not a filename. Developer Community Skip to main contentVisual StudioGuidelinesProblemsSuggestionsCode of ConductDownloadsVisual Studio IDEVisual Studio CodeAzure DevOpsTeam You can simply use C# inbuilt function " Path. Newsroom Newsroom Remove invalid (disallowed, bad) characters from FileName (or Directory, Folder, File) [duplicate] Asked 16 years, 3 months ago Modified 12 years, 1 month ago Viewed 30k times These methods are useless as the documentation itself states: "The array returned from this method is not guaranteed to contain the complete set of characters that are invalid in file and directory names. (unless you are willing to build a I accidentally saved a file that contained an = in the file name. I'd like to know if My newbie tip or tip for python programmers: Don't use quotation in file path. ArgumentException' in mscorlib. I have been exhaustively googling, as Illegal characters in path. I then tried the characters ! and ? ! was OK, ? was rejected. bnk2zd, k3cd, c6wmb, myr, 8tdn06t, gsko, rm2p, bvh64f, 8gsky, vj, vz, lepdu, hj, mepw, vvlzfqc, bgsjn, tl5zt, 2at2o, kiu, tcub0, qc9ji, bwv, ckd, hhezbr, fkw0w, ecqtor, wkk, 48p5, jpgd, f7meeo,