in reply to Check last character of a string

BTW, the concern about a backslash in a path suggests the OPer is running under Windows.

Windows seems to have the 'feature' that it doesn't care how many '\' characters separate directory names in a path. Would unconditionally appending a '\' work just as well?

Replies are listed 'Best First'.
Re^2: Check last character of a string
by AltBlue (Chaplain) on Aug 07, 2008 at 15:35 UTC
    AFAICR, most operating systems have that 'feature' ;-)