Click here to Skip to main content
15,905,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TCP and Thread problem Pin
Just Baballa15-May-06 23:30
Just Baballa15-May-06 23:30 
QuestionRemote Debugging Pin
Raj241115-May-06 22:51
Raj241115-May-06 22:51 
Questioncalculate the size of HBITMAP Pin
anilksingh15-May-06 21:55
anilksingh15-May-06 21:55 
AnswerRe: calculate the size of HBITMAP Pin
Hamid_RT15-May-06 22:30
Hamid_RT15-May-06 22:30 
AnswerRe: calculate the size of HBITMAP Pin
Jitendra gangwar15-May-06 22:54
Jitendra gangwar15-May-06 22:54 
AnswerRe: calculate the size of HBITMAP Pin
Sarath C16-May-06 1:58
Sarath C16-May-06 1:58 
AnswerRe: calculate the size of HBITMAP Pin
David Crow16-May-06 3:55
David Crow16-May-06 3:55 
QuestionReading and Writing to a file at the same time Pin
waxie15-May-06 21:24
waxie15-May-06 21:24 
Hi guys,

I have been teaching myself c++/mfc, and I was wondering if there is a way to read and write to a file at the same time?
Like read the file first and if it encounters this text, replace that text with a new text (so write to the file)?
I observed that we can only read to a file first, close it, then write to it, or vice versa. But is there a way to do both? I did not want to use fseek() since my number of bytes per line are not fixed.

I'd appreciate all the help I can get. And if I got a concept wrong, please do correct me.

Thanks a lot!Big Grin | :-D

Rose | [Rose] The Buggy
AnswerRe: Reading and Writing to a file at the same time Pin
Naveen15-May-06 21:50
Naveen15-May-06 21:50 
GeneralRe: Reading and Writing to a file at the same time Pin
waxie15-May-06 21:51
waxie15-May-06 21:51 
GeneralRe: Reading and Writing to a file at the same time Pin
Naveen15-May-06 21:57
Naveen15-May-06 21:57 
GeneralRe: Reading and Writing to a file at the same time Pin
waxie15-May-06 22:27
waxie15-May-06 22:27 
GeneralRe: Reading and Writing to a file at the same time Pin
kakan15-May-06 22:35
professionalkakan15-May-06 22:35 
GeneralRe: Reading and Writing to a file at the same time Pin
waxie15-May-06 22:46
waxie15-May-06 22:46 
GeneralRe: Reading and Writing to a file at the same time Pin
kakan15-May-06 22:49
professionalkakan15-May-06 22:49 
GeneralRe: Reading and Writing to a file at the same time Pin
waxie15-May-06 22:57
waxie15-May-06 22:57 
GeneralRe: Reading and Writing to a file at the same time Pin
kakan15-May-06 23:31
professionalkakan15-May-06 23:31 
GeneralRe: Reading and Writing to a file at the same time Pin
waxie16-May-06 0:30
waxie16-May-06 0:30 
GeneralRe: Reading and Writing to a file at the same time Pin
kakan16-May-06 0:50
professionalkakan16-May-06 0:50 
GeneralRe: Reading and Writing to a file at the same time Pin
Naveen15-May-06 22:37
Naveen15-May-06 22:37 
QuestionRe: Reading and Writing to a file at the same time Pin
David Crow16-May-06 3:06
David Crow16-May-06 3:06 
AnswerRe: Reading and Writing to a file at the same time Pin
kakan15-May-06 21:58
professionalkakan15-May-06 21:58 
QuestionImage transwering using CAsyncsoc Pin
psramu15-May-06 21:01
psramu15-May-06 21:01 
AnswerRe: Image transwering using CAsyncsoc Pin
kakan15-May-06 22:16
professionalkakan15-May-06 22:16 
QuestionAddition MultiDocument/View architecture to ActiveX Pin
majco33315-May-06 20:39
majco33315-May-06 20:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.