malayaj
Programmer
- Mar 19, 2001
- 11
hi all,
Through a c/c++ program can we read a txt file & at the same time write in to it.
like
a txt is
WE ARE ALL HUMAN. SOCIETY IS OUR HOUSE.
say...our objective is to write # after every is found.
can I read it char by char with using getc() (or any other fucn) and if i find "is" can i write at the same time # by putc() or fprintf() ?
If yes HOW?
if no why?
please send solutions asap.
regards
malayaj
Through a c/c++ program can we read a txt file & at the same time write in to it.
like
a txt is
WE ARE ALL HUMAN. SOCIETY IS OUR HOUSE.
say...our objective is to write # after every is found.
can I read it char by char with using getc() (or any other fucn) and if i find "is" can i write at the same time # by putc() or fprintf() ?
If yes HOW?
if no why?
please send solutions asap.
regards
malayaj