I want to locate a fil witch I later open with fopen because if I give the path to the file it might not be the right one on all computers so if I want it to work I most first locate the fil I want and then open the path, right? I've tested using system("whereis file") in the fopen argument didn't work it I also tryed to use a pointer to system("whereis file") witch resulted into a core dump. I've also looked in alot of tutarials but none even coment this matter.