Duplication

Report a typo

Read the input string and duplicate it in the file MyFile.txt.

Examples:

1) Input string:

Yohoho!

After we have launched the code:

Yohoho!Yohoho!

2) Input string:

meow

After we have launched the code:

meowmeow

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

Create a free account to access the full topic