wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes CharacterStream file reader and write Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "CharacterStream file reader and write" Watch "CharacterStream file reader and write" New topic
Author

CharacterStream file reader and write

veena bijur
Ranch Hand

Joined: May 16, 2011
Posts: 67


I am getting Io error, Where i went wrong? Please help.
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

This says, "Ignore the important details about what went wrong. Just print out a vague message and continue on as if everything was fine."


Change your catch blocks to look like this to see more details about what went wrong and where:



That's still not proper exception handling, but at least you'll be able to diagnose your problem.
veena bijur
Ranch Hand

Joined: May 16, 2011
Posts: 67
Thanks, now i could figure it out the error. made changes its working now.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2173
    
  47
Well done.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CharacterStream file reader and write
 
Similar Threads
FileIO
Reading alarge file and wrapping content
Can not find my error ? Help
Create .txt file
close() for I/O objects