I cant find the right folder? I know it works cos copying the capacity file into mysorce directory and typing myfile.open("capacity")
gives the myfile>>variableXXX the right value. But typing myfile.open("/sys/bla bla bla/capacity") gives my variable random numbers depending on what type the variable is, and none of them is the battery capacity.