I have a file name stored in a string as logfileName,suppose i pass the name as "james.log" then I need to get only the "james" part I tried using something like:-
int length = logfileName.size(); //calculates the size
Now i need some code that only stores the "james" part in the string for the later use.
1 Answer