Thread: Manipulating a string

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    9

    Question Manipulating a string

    I have a text file with a bunch of paths that look like the following string:
    http://mamam.org/quality/browser/sta...a_charset.html

    I would like to strip the string so I only get the file name without the extension. I should look like this:

    a_charset

    I was able to write a function to tell me the position where the last '/' and '.' are.

    could anyone please give a clue.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    9
    Thanks.

    I've found the answer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 06:02 AM
  2. Replies: 4
    Last Post: 03-03-2006, 02:11 AM
  3. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 03:23 PM
  4. creating class, and linking files
    By JCK in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2002, 02:45 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM