std::string systemStr = "C:\\gcc1\\gccxml.exe ";
systemStr += "\"" ;
systemStr += argv[1] ;
std::cout<<"Header File is:"<<argv[1]<<endl;
In the above code snippet, argv[1] represents the name of the header file. I want to open this header file and search for #ifdefs that may be present. How do I go about doing this? The problem is that argv[1] is a string. I’m sorry if I’m unclear.
How about something like this…