Mail Archives: djgpp/1998/11/03/11:35:19
On Tue, 3 Nov 1998, bowman wrote:
>
>
> 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.
>
>
Also, you're opening your files in text mode rather than in binary mode,
and get you use fgetc. fuse fopen("foo.bar","rb") to open for reading in
binary mode.
Bjorn De Meyer.
IA #i^4
Homepage: http://studwww.rug.ac.be/~bgdmeyer
E-mail: bjorn DOT demeyer AT rug DOT ac DOT be
Licentiate Chemistry.
Coordinator of the "Tales of Artah: First Sword" CRPG project.
"I've shaven. I'm happy. I have no religion. Don't pray for me."
Illusion of Gaia 2
- Raw text -