Showing posts with label stringbuffer. Show all posts
Showing posts with label stringbuffer. Show all posts

Saturday, February 25, 2012

Filereader null declarations and appending best practice


I want to optimise my file reader function but am not sure if it is best practice to declare the nulls outside of the try loop. Also, is looping and appending chars to a Stringbuffer considered bad practice? I would like to use the exception handling here, but maybe it is better to use another structure? any advice most welcome, thanks.