Mail Archives: djgpp/1997/08/25/14:58:22
On Mon, 25 Aug 1997, A. Sinan Unur wrote:
> > I did specify the exact problem, it quits copying halfway through!
> this is what YOU wrote:
> > I'm trying to write a program to read a file and write it to another
> > file in C++, but my program quits like halfway through the file with a
> > read error or something to that effect... Here's some pseudo-code.
> 'something to that effect', 'here's some psuedo code'? is that exact?
> you posted that after your first message. i wrote my response between
> the two postings. when i saw your post, i realized that my diagnosis was
> most probably correct, so i didn't see any point in e-mailing you again.
> since then, did you actually try opening the files in binary mode to see
> if the problem goes away? also, even in your second post, you did not
> give any clues as to the nature of the files: binary or text?
Well, I put something to that effect because that's still I have to go
on... My program exits with an EOF when it shouldn't... I tried it in
binary mode and it didn't work at all... (read 0 bytes) so maybe I'm doing
something wrong there...
The thing is, I want it to be an all purpose copy class eventually and
maybe evolve into embedded compression/decompression and large
data/library files.. But if I can't even copy a file I don't see how
that'll happen :)
+--- -- -- - -
| [pHiXx/VorteX]
: phixx AT usa DOT net
:
.
- Raw text -