1 | initial version |
%u is for unsigned ints, your int is signed -> use %i or %d. As berak said, check that your folder even exists. And another thing that has been said again and again: Use the C++ interface!! There are so many things you can do wrong with the old interface which won't happen in the C++ interface.