question: private static String readFile ( String fileName ) { String classMethod = "UpgradeUtils:readFile : " ; StringBuilder fileData = new StringBuilder ( ) ; String fileString = "" ; try { BufferedReader reader = new BufferedReader ( new FileReader ( fileName ) ) ; char [ ] buf = new char [ 1024 ] ; int numRead = 0 ; while ( ( numRead = reader . read ( buf ) ) != - 1 ) { String readData = String . valueOf ( buf , 0 , numRead ) ; fileData . append ( readData ) ; buf = new char [ 1024 ] ; } reader . close ( ) ; fileString = fileData . toString ( ) ; } catch ( Exception e ) { debug . error ( classMethod + "Error reading file : " + fileName ) ; } return fileString ; }
target:  Reads a file into a string.