So the output is correct ?
what? i dont get what your problem is. at least YOU have to define what’s right and what’s wrong.
The last line. English is on two lines.
Because of the simple pagination I used. 512 characters.
I guess I would a need different loop to get a more definite amount of text from the file, say for 20 lines per return keystroke.
Please add the relevant code to the post. It’s impossible to help with coding issues based on a picture of the output alone.
Is there a simple way to grab 20 lines instead of 512 characters from the file on line 38 ?
file() gives you an array of the contents of a file delimited by newlines,
array_slice() can get you a segment of that array