Message-ID: <363F08C7.6853F8B5@montana.com> Date: Tue, 03 Nov 1998 06:44:39 -0700 From: bowman X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: why is output different each time (2nd try) References: <01be06eb$47b9e940$5640ab95 AT JUry DOT law DOT unsw DOT edu DOT au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Joe Ury wrote: > > Sorry my first message had a error in the code. > Why do I get differing output each time. Its reading a marked up text file > and the first time it works ok then the next time what looks like memory > dump is added at the beginning of each line then the next time more of the > same and after a while its ok again - should I be flushing memory > somewhere? I haven't had time to look at the code deeply, but I do not see the files being closed anyplace. I would try that first, rather than depending on exit code to clean up after you.