Mail Archives: djgpp/1998/07/29/06:00:55
Hi, I have coded some file routines for my linked list class, but when I
write the file (I won't bore you with the details) it seems that
something goes wrong.
Ie, I print out 11 integers and get a 45 byte file. How is this possible
if I open this file in binary mode
ie, with the line
ifstream infile("test.txt", ios::bin);
and
iostream outfile("test.txt", ios::bin);
It works out that for the first 14 integers everything is ok, but after
that things get totally out of whack.
Anyone have any ideas?
--
Jamie Love
- jamie DOT love AT clear DOT net DOT nz
- http://www.geocities.com/siliconvalley/horizon/4532
----
- Raw text -