[hr]I am writing a fairly complex command-line program in C for DOS. In a few words, it involves several menus, user-entered data, writing to and reading from a disk file, and output to screen of data coming from sort routines.
The output is usually several screens long, but I haven't been able to figure out how to get just one screen of output at a time. I've tried every way I can think of to use the DOS [blue]more[/blue] command, namely:
1) command-line argument [blue]more < filename[/blue].
2) command-line argument [blue]filename | more[/blue].
3) including it at various points in the C source file as [blue]system("more")[/blue].
The result is simply that program execution stops. Can what I want be done with [blue]more[/blue], or is there some C function that I should be using instead?[hr]