eachLine에 전달할 수있는 정수 인수가 있지만 각 줄을 건너 뛸 수는 없지만 구문을 이해할 수는 없습니다eachLine에서 firstLine 인수를 사용하는 방법
#doesn't work
new FileReader('myfile.txt').eachLine firstLine=2,{
line-> println line
}
#nope
new FileReader('myfile.txt').eachLine(2){
line-> println line
}
나는 대답을 이해하지 못했습니다. –