Hey, I wanted to know if anyone can tell me what the difference between “file.file” and “./file.file” is. It seems to make quite a significant difference in my programs to call
OpenFile("./file.file");
EDIT: My mistake, I thought my question was a generic one. This is in C++ using standard library functions.
In general,
"./File"will be relative to the directory that your program’s context is currently executing in.Just
"File"will be relative to the directory that the program executable resides in.This is pretty dependent on what tool or language you’re using, however.