Original Post
Alright, I'm not completly sure how to phrase this, so please let me know if it doesn't make any sense! I am currently writing a program to add a header to all my .h / .c /.java files, etc. So if I add my folder where my application's .class files are to the system path, i can then do the java myApp. Correct? So I want my program to know what folder it has been called from. What i mean by this is: For example, if, in *nix, do you 'ls' it know what directory it was called from. I am looking for the equiv in java. Hope this made sense!