jQuery in Action, 2nd edition
The moose likes Java in General and the fly likes FileReader querry Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "FileReader querry" Watch "FileReader querry" New topic
Author

FileReader querry

Sadaqatullah Noonari
Greenhorn

Joined: Mar 22, 2011
Posts: 12
I am using FileReader class in my code. It say an error when it does not find the file. I want to handle this error such that if file is not found, it makes and then moves on. need help in this problem.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Put a try/catch when this exception happens, and return/continue(inside a loop).


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4092
    
    1
yeah that is easily done. i have an old example i remember...hold on


SCJP
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: FileReader querry
 
Similar Threads
Current Working Directory?
FileReader: why does this simple code not run?
Reading from a file
Reading files in applet
how to read a file inside a JSP