. . . Properties configuracion = new Properties(); try { configuracion.load(new FileInputStream("configuracion.conf")); usuario = configuracion.getProperty("user"); password = configuracion.getProperty("password"); servidor = configuracion.getProperty("server"); puerto = Integer.valueOf(configuration.getProperty("port")); } catch (FileNotFoundException fnfe ) { fnfe.printStackTrace(); } catch (IOException ioe) { ioe.printStackTrace(); } . . .