Lets say that I have a text file "myfile.txt" that assigned to a string variable and I want to get rid of the dot and the rest of extension file character .txt
#include <stdio.h>
#include <string>
#incldue <iostream>
int main() {
std::string F = "myfile.txt";
return 0;
}
So the output I want to achieve is "myfile". Using std::size doesn't look like it's gonna works on my case aswell, is there a way that I can construct what I wanted?