String DBNAME = NULL; BUFFEREDReader Reader = NULL; File File = NULL; FileReader Freader = NULL; Try {file = new file ("../ server / default / deploy / jbccm.txt"); // Need to specify file path FREADER = New FileReader (file); Reader = new bufferedreader (FREADER);} catch (filenotfoundexception e) {system.err.println ("No File");} DBNAME = Reader.Readline (); // Namesetdbname (DBNAME) ; // You can read the first row of data with the setDbname method with the SET method.