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

  1. it reads contents of texts files in particular location , merges contents & creates 1 single text file.
  2. 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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -