Re: How to locate ex.err
- Posted by Spock Nov 29, 2010
- 1243 views
ex.err should be written to the directory that the program was executed from. I realize this could vary greatly depending on the IDE but I would assume most would launch from the directory your main source file is located in?
Jeremy
Hi Jeremy,
Thanks for the prompt rely. I tried these 4 experiments just now:
1) I opened the target file then I opened another file in a different folder then I ran the first file. The ex.err file was written to the other folder.
2) Opening the target file and running it immediately caused ex.err to be placed in the same folder as the file.
3) I modified the program so that as it was running it would open then close a file in some arbitrary folder. Ex.err went to that arbitrary folder.
4) I repeated test 3 under the same principle as 1. The result was the same as in 1.
I have Eu 4 but it is not the very latest version (I don't think that matters). It seems to be that if I (re)open the target file immediately just before executing it the ex.err should be placed in the same folder (in most cases). When I write code I usually have quite a few files open (not in the io sense) in the IDE so it'd be better to make the IDE responsible for knowing where to look rather than me. I'll check this out further when I have time.
Spock