Skip to content
Subjects
Code examples
Library reference
Computer Programming
Python
Java
C++
C
Go
PHP
Kotlin
Ruby
R
Scala
Groovy
Tutorial menu
×
Subjects
Computer Programming
Maths
Planned
Chemistry
Planned
Lesson contents
Programming resources
All languages
Code examples
Library reference
Programming languages
Python
Java
C++
C
Go
PHP
Kotlin
Ruby
R
Scala
Groovy
Tutorials
/
Computer Programming
/
Groovy
/
Library
/
More library topics
More Groovy library references
Explore additional libraries and worked examples for this language.
String.readLines
withCloseable
Search this section
Search
String.readLines
Keep a blank record while splitting text into lines
withCloseable
Close a reader after processing its first record
All Groovy library sections