Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

check if a file exits  RSS feed

 
Zaafir Barahim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i check in JAVA if a file exits in a secific folder where i have saved all my files and it is about checking a text file. may i have the code please if anyone have it. thanks in advance
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the "exists" method in the java.io.File class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!