Thank you for getting adventurous

Below you will find a random blog post out of the creatronix space. Have fun while reading and learning something new!

Reading files with Kotlin

Before Kotlin BufferedReader br = new BufferedReader(new FileReader(“data.txt”)); try { StringBuilder sb = new StringBuilder(); String line = br.readLine(); while (line != null) { sb.append(line); sb.append(System.lineSeparator()); line = br.readLine(); } String content = sb.toString(); } finally { br.close(); } This is a code sample reading a files content in plain old Java. What a mess…

Read more

More posts

See the latest blogposts about code and business and everything inbetween.