• Post Reply Bookmark Topic Watch Topic
  • New Topic

Access Denied - File Reading  RSS feed

 
kannan vinayagam Duraiswamy
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i write a java program that copies the files form one location to another.
while running the program, it throws 'FileNotFound' exception (Access Denied).
how to skip those file and get continue to read the next file...

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to catch that exception (in a try/catch block) so that you can continue the loop through all files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!