<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Io on Devops Monk</title><link>https://devops-monk.com/tags/io/</link><description>Recent content in Io on Devops Monk</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 04 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://devops-monk.com/tags/io/index.xml" rel="self" type="application/rss+xml"/><item><title>Files and IO Enhancements (Java 11)</title><link>https://devops-monk.com/tutorials/java11/files-io-api/</link><pubDate>Mon, 04 May 2026 00:00:00 +0000</pubDate><guid>https://devops-monk.com/tutorials/java11/files-io-api/</guid><description>The Problem: File IO Boilerplate Reading a file&amp;rsquo;s content in Java 8 required several lines of boilerplate, even for simple tasks:
// Java 8 — read entire file as String String content; try (var reader = new BufferedReader(new FileReader(&amp;#34;config.txt&amp;#34;))) { content = reader.lines().collect(Collectors.joining(&amp;#34;\n&amp;#34;)); } // Java 8 — write a String to a file try (var writer = new BufferedWriter(new FileWriter(&amp;#34;output.txt&amp;#34;))) { writer.write(content); } Java 11 reduced this to one-liners.</description></item></channel></rss>