I want to use a relative to open a file to read in Eclipse C / C ++, but would need to know where eclipse runs the file to put the file in that directory and use the line of code:
ifstream input ("file.txt");
instead of:
ifstream input ("/ home / path / workspace / program / src / file.txt");Can anyone tell me where the eclipse runs the code?