Compiling the program

The program is compiled using the following command:

kotlinc CSV.kt -o CSV

In the preceding code, CSV.kt is the name of the file containing the Kotlin code and -o CSV specifies the output filename.

On successful compilation, the command generates two new files, namely CSV.exe (Windows executable) and CSV.kt.bc:

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.