DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Posts
    4

    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
    Posts
    12
    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
    Posts
    4

    Arrow

    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

Bookmarks

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links