I have a more difficult project this time. We're supposed to read input from a data file, then check to see if each line is a palindrome. We have to use a loop to read each line, and do various things to each line of data, print each revision, then read the next line, etc.
Where I'm running into a problem:
First, I don't know how to do a loop that detects the end of the file. We open a file by means of:
FileOpen(1, "File Name", OpenMode.Input)
Not the io.streamreader way.
Do when I do Do While (restriction), I can't just put in (Not EOF()), can I? It gives me an error when I do that.
Any help would be most appreciated. I'm sure I'll have more questions as I go, too.
Where I'm running into a problem:
First, I don't know how to do a loop that detects the end of the file. We open a file by means of:
FileOpen(1, "File Name", OpenMode.Input)
Not the io.streamreader way.
Do when I do Do While (restriction), I can't just put in (Not EOF()), can I? It gives me an error when I do that.
Any help would be most appreciated. I'm sure I'll have more questions as I go, too.