2010/7/18 Michael Van Canneyt <michael at freepascal.org>: > I think that simply > > AssignStream(Output,S); > Rewrite(Output); > > Probably would work as well. Yes, you are of course right, this is simpler. I just forgot to simplify it after I was initially playing around and experimenting with a separate file and without redirecting Output.