I want to issue the echo command inside a c++ file.
All i need to do is
echo “xml::/var/some.xml” >> /var/config
In C++ file, I tried,
system(“echo” + “xml::/var/some.xml” +”>> /var/config”);
But it throws invalid operands of types const char[6] and const char[46] to binary operator +.
Need help
I guess this is one where you may be able to get away with “can has codez?”: