Forums Register Login

how to get file path

+Pie Number of slices to send: Send
when i use the System.getProperty("user.dir") i get the current working directory.. i want to get the absolute file path of a text file... how can this be done?
+Pie Number of slices to send: Send
Where is the text file?
+Pie Number of slices to send: Send
outside the directory of the class dile that calls the text file
+Pie Number of slices to send: Send
Look at the File class. You'll find several methods that give you different forms of paths. The doc is a bit confusing, so try some of them and see what they mean.


Does that answer the right question?
Nothing? Or something? Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1748 times.
Similar Threads
How to get the path of an Uploaded file?
Create file object for each assets item.
jar and path
How to get the complete file path in Mozila
Servlet Path/Path Info what for ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:54:14.