Finding a file using File path (Folder name) inside a Java Project
807580Jul 21 2010 — edited Jul 21 2010Hi Everyone,
Am sorry for the cross-post. I actually meant it to be posted in this Forum. I would really appreciate some tips.
Scenario:
I have a java project "Generator":
-> It has its .java files in the branch
-> It has a folder in the branch called "SourceFiles" (here I have C++ files ... the header files.)
-> This header files have the following structure:
namespace Health{
class myHealth{
private:
... ... ...
public:
... ... ...
};
}
Now, I have a .xml file which holds the "namespace" and "class" names of each header file (also the folder name "SourceFiles"). By parsing it I collect these data.
Then My First Task is:
-> using each set of "namespace" and "class" name (and Folder name), I have to find where the file is, access the file and then write some lines inside that .h file
Then My Second task is:
-> generate a new file with .h extension, which should be inside another folder (under the same Java Project ofcourse). And then also access that and write inside it.
I really really need some help here. I am too much of a novice and am not finding any way to achieve a result!
Thank you
with best regards,
newbie