AbstractFileBrowser.st
changeset 15910 9eff8cc5956c
parent 15906 1c4d247a06d9
child 15911 59dedf62bf6f
child 15915 08316e965232
equal deleted inserted replaced
15908:80f06811ff1d 15910:9eff8cc5956c
  8457         outFile := infile pathName , '_' , (splitIndex printString leftPaddedTo:3 with:$0).
  8457         outFile := infile pathName , '_' , (splitIndex printString leftPaddedTo:3 with:$0).
  8458         outStream := outFile asFilename writeStream.
  8458         outStream := outFile asFilename writeStream.
  8459         remainingLinesInThisOutfile := numberOfLines.
  8459         remainingLinesInThisOutfile := numberOfLines.
  8460         [(remainingLinesInThisOutfile > 0) and:[inStream atEnd not]] whileTrue:[
  8460         [(remainingLinesInThisOutfile > 0) and:[inStream atEnd not]] whileTrue:[
  8461             line := inStream nextLine.
  8461             line := inStream nextLine.
  8462             outStream nextPutLineline.
  8462             outStream nextPutLine:line.
  8463             remainingLinesInThisOutfile := remainingLinesInThisOutfile - 1.
  8463             remainingLinesInThisOutfile := remainingLinesInThisOutfile - 1.
  8464         ].
  8464         ].
  8465         outStream close.
  8465         outStream close.
  8466         splitIndex := splitIndex + 1.
  8466         splitIndex := splitIndex + 1.
  8467     ].
  8467     ].