hi i have to read a file(pj.dat)in 3 different ways.
1. file is in the same dir as the exe and i think it will be read by doing this:
2. i have to read the same file as it was in "C:" Drive i.e "C:pj.dat"
for this i think we just supply the path which would look like:
3. reading the same file from any drive letter(or directory structure) input by the user.
I am not sure but i think it should be something like:
char filePath; //max chars of the filepath
printf("Please enter the path:");
i am not sure if these will work. Can anyone make sure and point out my mistakes if i am wrong???
0 · ·