eugeniaperez.es
Ficheros
Text
eugeniaperez.es
Ficheros
Text
eugeniaperez.es
BufferedReader br = new BufferedReader(new FileReader("ej.txt"));
try {
StringBuilder sb = new StringBuilder();
String line = br.readLine();
while (line != null) {
sb.append(line);
sb.append(System.lineSeparator());
line = br.readLine();
}
String everything = sb.toString();
} finally {
br.close();
}
Ficheros
Text
eugeniaperez.es
try(BufferedReader br = new BufferedReader(new FileReader("file.txt"))) {
StringBuilder sb = new StringBuilder();
String line = br.readLine();
while (line != null) {
sb.append(line);
sb.append(System.lineSeparator());
line = br.readLine();
}
String everything = sb.toString();
}
Ficheros
Text
eugeniaperez.es
BufferedWriter bw = null;
FileWriter fw = null;
try {
String content = "Contenido";
fw = new FileWriter(FILENAME);
bw = new BufferedWriter(fw);
bw.write(content);
} catch (IOException e) {
e.printStackTrace();
}
Ficheros
Text
eugeniaperez.es
Ficheros
Text
eugeniaperez.es
Ficheros
Text
eugeniaperez.es
Ficheros
Text
eugeniaperez.es
Ficheros
Text
eugeniaperez.es
Interfaces Gráficos
Text
eugeniaperez.es
Interfaces Gráficos
Text
eugeniaperez.es
Interfaces Gráficos
Text
eugeniaperez.es
Properties prop = new Properties(); InputStream input = null; try { input = new FileInputStream("config.properties"); prop.load(input); System.out.println(prop.getProperty("database")); } catch (IOException ex) { ex.printStackTrace(); }
Interfaces Gráficos
Text
eugeniaperez.es
Interfaces Gráficos
Text
eugeniaperez.es
version: 2
jobs:
build:
docker:
- image: circleci/<language>:<version TAG>
steps:
- checkout
- run: <command>
test:
docker:
- image: circleci/<language>:<version TAG>
steps:
- checkout
- run: <command>
Interfaces Gráficos
Text
eugeniaperez.es
Interfaces Gráficos
Text
eugeniaperez.es