I'm new to Kotlin and trying to read a text file in my app. I've been trying all the suggestions I can find without success. I've put a text file in assets and I've tried

```
val resultLines = application.assets.open("myLines.txt").readLines()

```

but application is shown in red with an "Unresolved reference" error. I've tried

```
val resultLines = requireContext().assets?.open("myLines.txt").toString()

```

but it crashes. Another suggestion was

```
val fileText: String = applicationContext.assets.open( fileName: "textfile.txt").bufferedReader() .use { it.readText () }

```

but applicationContext was an Unresolved reference.

All I want to do is read a text file with a few lines of text into a List.