Leer archivos en una linea de codigo
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
@Test
public void readFileIntoString() throws IOException {
String content = Files.readString(Paths.get("[FILE_NAME]"));
assertNotNull(content);
}
Last updated
Was this helpful?