For some unkown reason those function receive the file path as char* and not const char_. Moreover, if you pass it const char_ then a seg fault happen (the program just stop and reset over and over). Some how the compiler let you do it but its another bug.