How to Display text file (.txt) in jetpack compose.
Explanation:
Need to show (.txt) file on the screen using Jetpack compose
val text = File("example.txt").readText()
Thus, all text from your file will be in that string value.
@Composable
text function with this value@Composable
Text(text = text)