How to Get File Size in Kotlin - Code Snippet

How to perform 'Get File Size' in Kotlin.

example.kt
// Task: Get File Size
// Language: Kotlin

fun get_file_size() {
    // Implementation for Get File Size
    val result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Get File Size
    println("Done");
}
AdSense Slot