• Post Reply Bookmark Topic Watch Topic
  • New Topic

checking for file present in the directory  RSS feed

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Searching for the file in directory

There are 2 directories
1)D:\eclipse\POST_5227\gui\Trustdata
In this directory there are ".t05" files (ex Quick.t05)

After extracting name of the file example "Quick", adding a new extension to it.

example "Quick_printIt_1"

2) Checking this new file present in another directory
D:\eclipse\POST_5227\gui\print


How to check the existence of new file present in print folder?



 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check out the java.io.File API description.

pascal
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you look at the "exists()" method in the java.io.File class?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!