String (boolean includeNewLine) { int start = myPosition; while (!isEol()) { myPosition++; } int end; if (includeNewLine) { nextLine(); end = myPosition; } else { end = myPosition; nextLine(); } return myText.substring(start, end); }