File I O Best Practices - nageshcbm135/Java-Best-Practices GitHub Wiki
Welcome to the Java-Best-Practices wiki!
- Close File Input/Output streams always. The best place to close is in finally block. Check if object is not null then close. This finally will ensure object will be closed irrespective of the processing errors. This will avoid memory leaks.
- Avoid read or write one character at a time. Use Character Streams