Thread: String problem

  1. #1

    String problem

    does anyone know if there is any c/c++ function (or combination of functions) that will trim a string up to the last instance of a character (so if it trimmed to the last instance of '\', it would turn "C:\path\to\file.bla" to simply "file.bla")?

    im trying to make a map editor for an rpg that im writting and i keep encountering a problem where it saves the entire path of a file

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    read this for some ideas maybe.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  3. #3
    that worked, thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 04-25-2008, 02:45 PM
  2. String issues
    By The_professor in forum C++ Programming
    Replies: 7
    Last Post: 06-12-2007, 09:11 AM
  3. Custom String class gives problem with another prog.
    By I BLcK I in forum C++ Programming
    Replies: 1
    Last Post: 12-18-2006, 03:40 AM
  4. Compile Error that i dont understand
    By bobthebullet990 in forum C++ Programming
    Replies: 5
    Last Post: 05-05-2006, 09:19 AM
  5. Replies: 4
    Last Post: 03-03-2006, 02:11 AM