public static void main(String[] args) throws IOException {
var input = "input.txt";
var output = "output.txt";
var pattern = Pattern.compile("\\d+");
var max = Files.lines(Paths.get(input))
.map(line -> {
var matcher = pattern.matcher(line);
return matcher.find() ? matcher.group().length() : 0;
})
.max(Integer::compare)
.orElse(0);
Files.write(Paths.get(output), String.valueOf(max).getBytes());
}
RivaTuner is a complete powerful tweaking environment, providing you everything you may need to tune NVIDIA GPU based display adapters.