Results 1 to 13 of 13

Thread: remove "\" from the end of string[Resolved]

Threaded View

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    remove "\" from the end of string[Resolved]

    Code:
    string path=@"C:\data\test\test2\test3\test4";
    I have this string and I want to remove all characters starting from the begining till the last backslash "\" char . Note , this is just an example . The string will be changable and has no fixed number of characters .

    Result I need is like this :
    "test4"

    Thanks .
    Last edited by Pirate; Jan 9th, 2004 at 07:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width