I'm trying to store certain lines from an .ics file to separate strings depending on their contents. I've been able to convert an .ics file to a string, but I am having difficulty searching it line by line to find certain keywords. 

The string (and file) contains:

```
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//School of Rochester NY |-ECPv4.8.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:School of Rochester NY | 

```

I've been able to display the text in the logcat, but I have not been able to save the lines as separate strings.

```
 override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        var textView = findViewById<TextView>(R.id.textView)

        val file_name = "education-1e1a4bdab8e.ics"
        val ics_string = application.assets.open(file_name).bufferedReader().use {
            it.readText()
        }

        Log.i("TAG", ics_string)

        textView.text = ics_string

        if (ics_string.contains("BEGIN:VCALENDAR", ignoreCase = true))
        {
            Log.i("TAG", "contains event")
        }

    }

```

The logcat confirms that the text is in the document, but not which line.
Is there any way to add lines of a text as separate strings?