question: private void persistServerURI ( String serverURI ) { File fileDir = newConnection . getFilesDir ( ) ; File presited = new File ( fileDir , "hosts.txt" ) ; BufferedWriter bfw = null ; try { bfw = new BufferedWriter ( new FileWriter ( presited ) ) ; bfw . write ( serverURI ) ; bfw . newLine ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } finally { try { if ( bfw != null ) { bfw . close ( ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } } }
target:  Add a server URI to the persisted file