I'm new in C++ and have a question about how to use a variable (pathLed) that carries a path in the fs.open function? String seams not to work. If I use define pathLed "/sys/class/leds/beaglebone:green:usr0" it works, but I need a variable to sign different paths to pathLed. Thanks for the answer. Nico
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
Comments
Leave a comment