I have a file "myfile.txt" in the directory dir3 as follows:
c:\dir1\dir2\dir3
And I have a class method "MyCurrentClass" in dir5 as follows:
C:\dir1\dir2\dir3\dir4\dir5;
When I run the "MyCurrentClass" to access "myfile.txt", I have to specify
the full path name like:
File inutile =
new File("c:\\dir1\\dir2\\dir3\\myfile.txt");
Is there a way of specifying the path without specifying the full path name,
like by backing 2 directories?
norman.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---