Look up ReadLine() in the KiXtart manual.

The example supplied reads a text file from start to finish, and displays each line on the screen.