Skip to content

Simple agenda on a file

Project to exercise basic I/O with kotlin

How to build

bash
kotlinc src/**/*.kt -include-runtime -d cmd-agenda.jar

How to run

bash
java -jar cmd-agenda.jar

Noteworthy

  • You can instruct the kotlin compiler to build a runnable jar file instead of stop the build with intermediate classes. The jar files are the standard way of share java compiled code, and so it is for kotlin.
  • Method forEachLine is a kotlin extension to the Paths java utility class. Check the stdlib for more useful functions.

See docs for further details.