Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Illegal characters in path.

Aamir Farooq answered on May 16, 2023 Popularity 8/10 Helpfulness 2/10

Contents


More Related Answers

  • error: illegal character: '\u201c'

  • Illegal characters in path.

    0

    string illegal = "\"M\"\\a/ry/ h**ad:>> a\\/:*?\"| li*tt|le|| la\"mb.?";

    string invalid = new string(Path.GetInvalidFileNameChars()) + new string(Path.GetInvalidPathChars());

    foreach (char c in invalid)

    {

    illegal = illegal.Replace(c.ToString(), "");

    Popularity 8/10 Helpfulness 2/10 Language csharp
    Link to this answer
    Share Copy Link
    Contributed on May 16 2023
    Aamir Farooq
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.