Dear Liang,
Here are two possibilities.
- Redirect the standard output to a file, as you did with "sage<file
A>file B&;", but put the command "sys.stdout.flush()" at intervals in
your program. This will make sure that data in your program's output
buffer actually gets saved.
- When using a file object, open it with the command
outfile = open(<file name>, "a")
The argument "a" is a "mode" command -- it says that data written to
the file should be appended to what's already there, not overwrite it.
When you've written to the file, call "outfile.close()" to make sure
the buffer is flushed properly.
PS: Your message had three copies of your signature on it :-)
Regards, David
> --
> You received this message because you are subscribed to the Google Groups
> "sage-nt" group.
> To post to this group, send an email to
sag...@googlegroups.com.
> To unsubscribe from this group, send email to
>
sage-nt+u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/sage-nt?hl=en-GB.