I have two char variables, path and file_name:
During the program, it asks the user to input the values for both of the variables. For example, path might contain "C:\Program Files" and file_name would take it a step further: "C:\Program Files\File.txt".Code:char path; char file_name;
What I need is to remove the path (in the variable called 'path') from the file_name variable, to get just "File.txt". Can some one please point me in the right direction as how to do this?