One of the queries I have to deal with is that user wants a lot of data
from the database printed to file. This can take a while. Currently, the
way I handle it is:
1. User request file.
2. Print file.
3. User gets file.
What I would like to do is this:
1. User requests file.
2. Print the first line of file (say)
3. Tell user where to find the file.
4. print the rest of the file.
This way the user can view the file as it is being written. What's the
best way of doing this? I presume there are standard ways?