Created
          April 7, 2025 19:31 
        
      - 
      
 - 
        
Save rustyvz/c4dd29774ae77cd0561dff797f39873c to your computer and use it in GitHub Desktop.  
  
    
      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
    
  
  
    
  | // to a single String | |
| File("path/to/file") | |
| .bufferedReader().use { it.readText() } | |
| // to a List<String> | |
| File("path/to/file") | |
| .bufferedReader().use { it.readText() }.lines() | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment