This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes FileReader querry Code not working properly or what? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "FileReader querry Code not working properly or what?" Watch "FileReader querry Code not working properly or what?" New topic
Author

FileReader querry Code not working properly or what?

Sadaqatullah Noonari
Greenhorn

Joined: Mar 22, 2011
Posts: 13


The given code is supposed to read the file and return it in the form of an object. in the beginning it shows no error but when i try to print data it shows nothing and loops me back to where I started. need help in resolving this problem.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3432
    
  12
Maybe you're getting an exception, but as you totally ignore any exceptions that are thrown, you'll never know. As a minimum, print the stack trace.


Joanne
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: FileReader querry Code not working properly or what?
 
Similar Threads
application "freezing"
how to avoid null pointer exception
Using StringTokenizer?
Array of ten numbers
read specific line from text file