advanceCursor method
void
advanceCursor()
Implementation
void advanceCursor() {
if (cursor.position < fileContent.length) {
currentCharacter = fileContent[cursor.position];
} else {
isEndOfFile = true;
}
if (currentCharacter == '\n') {
cursor.line++;
}
cursor.position++;
}