Re: appending to a file
On Jul 25, 7:57 pm, Victor Bazarov <v.Abaza...@comAcast.net> wrote:
mohi wrote:
[..]
thanks for the reply ,but which tool can i use to see the
contents of the file and yes one more thing which debuging
the program with gdb it does follow the path lines as
written in the program
like for a single line say i++;
it goes on showing the same thing again and again without
moving to the next line(is it because after the compilation
of the program some ^M like characters have been added in
the source file automatically : i use g++ on cmd line)
I have no idea what to tell you about the tools (whether to
examine the contents of the file or gdb). The tools are *not*
on topic here.
Although not really on topic: under Unix, od can be used for
dumping the file. If you've a Unix like tookkit under Windows,
you probably have it as well. On the other hand (and on topic),
if you're going to be fooling around with binary files, writing
such a program yourself in C++ would be a good exercise to begin
with.
If you have a C++ language question, go ahead and ask it.
And start by posting working code, showing exactly what you're
doing. (And as you say: first, how he writes the file, and then
how he tries to update it.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34