Created
July 6, 2017 04:59
-
-
Save AkshayChordiya/168fb6a4597460d8669e12057f14f246 to your computer and use it in GitHub Desktop.
Example of use function in Kotlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FileReader("input.txt").use { | |
// Read the file | |
} | |
// Automatically closed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment