This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checking for file present in the directory

 
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
Marshal
Pie
Posts: 24208
35
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?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic