Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

IOException in an event handler

  Asked By: Don    Date: Jul 30    Category: Java    Views: 573
  

This is my first time posting and I'm currently taking my first Intro
Java class. I use MS Visual J++.

Anyway, the problem I have is that I can't seem to combine reading
input from a file and using an event handler (more specifically, a
button) into a single class. I keep getting an IOException whenever
I try and use a FileReader or BufferedReader (I actually haven't
tried file output with a FileWriter or PrintWriter yet) within the
event handler class. From the tutorials that I've been trying to
read online (I'm still not very proficient with Java syntax and
concepts) it looks like I have to handle the exception but I'm not
sure how to handle the exception and yet have the program continue
running. Right now the only way I know how to handle an exception is
to make it skip the step entirely... that definitely won't fly for
what I'm trying to do.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on IOException in an event handler Or get search suggestion and latest updates.




Tagged: