Asterisk

Report a typo

You have the next input string:

May *the* **Force** be ***with*** you!

Set the code lines in the correct order so that the empty file called MyFile.txt contains the input string without '*'

Please, declare the myFile variable before the content variable.

Put the items in the correct order
content = content.filter { it != '*' }
myFile.writeText(content)
val fileName = "MyFile.txt"
var content = readLine()!!
val myFile = File(fileName)
___

Create a free account to access the full topic