java - How to read text files without defining the location? -
i'm starting build jframe application work file handling. i'm trying done application that
- it reads contents of texts files in particular location , merges contents & creates 1 single text file.
- the main property application should have should not have navigate-to-location feature. suppose if paste application in location c:\users\desktop\application.exe, application must search location text files (i.e. on desktop) & merge them 1 single text file.
i've observed in patch tools patch softwares, never ask location software's_launcher.exe, tell paste patch in directory launcher belongs.
how it? how can same own application?
"./" specify current directory.
if use
file f1 = new file("./");
then f1 reference of current directory.
if application @ c:\users\desktop\application.exe place files & folder @ c:\users\desktop can access "./" string
Comments
Post a Comment