Another question
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[256]; char file_name[256];
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?
Thanks!



LinkBack URL
About LinkBacks





