DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006

    Post Error while reading from input file

    I keep getting this error while compiliing my main file. This part of the program just reads from an input file, words one-by-one

    "unreported exception java.io.IOException; must be caught or declared to be thrown"

    But as I am calling a function from another class to read; in that class I have catch IOException nad FileNotFound Exception.

    Please help.

  2. #2
    Join Date
    Apr 2005
    I'm not sure if I read the post crrectly but...

    try surrounding the function call with a try catch.

  3. #3
    Join Date
    Jun 2006


    But there is already a try catch within the function of that class. I get no compile error when I compile that function. But when I call that function from the main class. I get that error.

Similar Threads

  1. extracting data from and input file
    By jasonlg3d in forum C++
    Replies: 1
    Last Post: 02-01-2006, 11:19 PM
  2. reading and writing a file in VB
    By Athono in forum VB Classic
    Replies: 1
    Last Post: 01-02-2006, 10:07 PM
  3. reading a file that is inside the main .jar
    By JohnytheRipper in forum Java
    Replies: 0
    Last Post: 12-29-2005, 03:53 PM
  4. Reading File in .NET
    By Sathya in forum .NET
    Replies: 3
    Last Post: 06-28-2002, 10:30 PM
  5. File uploading / objFile.Write problem
    By Tomer Cagan in forum ASP.NET
    Replies: 1
    Last Post: 07-24-2001, 09:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.