Kotlin Program to Get Current Working Directory .the program begins by testing for command-line arguments. If a command-line argument is available, the command-line argument is used for the Path.
Kotlin Program to Get Current Working Directory
Source Code
fun main(args: Array<String>) {
val path = System.getProperty("user.dir")
println("Working Directory = $path")
}
Output
Kotlin Program to Get Current Working Directory