[beginner] get file address from file pointer
hi,
can anyone tell me how to get the full file address from a file pointer?
I use the dev-c++ compiler and when I ask the user to enter the filename to save the data to
and the user just enter a name like "text.dat" without c:\ (so not the full address). it's saved to my dev-c++ folder on the computer where the compiler is installed.
But when I run the executable file on another computer and the user give the input "text.dat" the text.dat file is found in the same directory as where the executable is in, can you explain that to?
thank you,