I'm trying to write a C code that does stuff with the files. Yet I want to not being have to set the absolute directory in the code, but rather just give the name and leave the hardwork of finding where it is to the computer. Something like this:
filename = searchForDirectory("exampleFile.txt");
fopen(filename, r);
Is something like this possible with C, and if it is, how?
Edit: To clarify, I want to be able to give a file name to -say- a function, which will scan all the directories in the disk, then return the directoy of the first occurance of that file name. I guess find in Linux does something like this. Is there a Windows counterpart?