Manipulating a string

This is a discussion on Manipulating a string within the C Programming forums, part of the General Programming Boards category; 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 ...

  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, 01:11 AM
  3. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 02:23 PM
  4. creating class, and linking files
    By JCK in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2002, 01:45 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21