edit: I changed the code slightly, and now it does count the number of lines correctly. However the program waits for input after each line (ie, if the textfile is 3 lines long, the user must click enter 3 times before the program continues). This ruins the screen layout and also does not make...
I'm trying to write a procedure to find the number of lines in a text file -- as far as I can see, the following *should* work, but it gives wildly innacurate results and also messes up the rest of the program (which works fine when the procedure is disabled). What am I doing wrong??
procedure...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.