Closed case

Report a typo

The detective has a file with all successfully completed cases and the name of each new case begins with a new line.

He recently solved a case called "The Sign of the Four".

Write code to add in the file the new line with a case called named "The Sign of the Four" into the file. The file name is MyCases.txt.

Please, don't remove the variable myFile, we need it to check your answer

Write a program in Kotlin
// Write your code here. Do not import any libraries
val myFile = File(...)
___

Create a free account to access the full topic