Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Interdependent classes [modified] Pin
Zac Howland15-Aug-06 9:42
Zac Howland15-Aug-06 9:42 
GeneralRe: Interdependent classes Pin
BadKarma15-Aug-06 21:07
BadKarma15-Aug-06 21:07 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:09
CoolASL15-Aug-06 22:09 
GeneralRe: Interdependent classes Pin
Zac Howland16-Aug-06 5:01
Zac Howland16-Aug-06 5:01 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:08
CoolASL15-Aug-06 22:08 
QuestionFile reading and writing Pin
69 Bay14-Aug-06 23:51
69 Bay14-Aug-06 23:51 
AnswerRe: File reading and writing Pin
Christian Graus15-Aug-06 0:03
protectorChristian Graus15-Aug-06 0:03 
GeneralRe: File reading and writing Pin
69 Bay15-Aug-06 5:10
69 Bay15-Aug-06 5:10 
Hi Christian - thanks for helping

I have now implemented part of what I wish to do using ifstream/ofstream
I have a question though

If you are reading the file into memory, and the block of the text file that you wish to alter is say 10 lines long, how do you increase or decrease the amount of lines that you wish to have?

Would you copy the block to be altered to another memory block, edit it, and then save the original memory block upto the point that you gave altered, then save the altered block, and then save the remainder of the original again?

Thanks for helping with what is (i am sure) basic stuff!

69 Bay
GeneralRe: File reading and writing Pin
Zac Howland15-Aug-06 9:50
Zac Howland15-Aug-06 9:50 
GeneralRe: File reading and writing Pin
69 Bay16-Aug-06 2:34
69 Bay16-Aug-06 2:34 
GeneralRe: File reading and writing Pin
Zac Howland16-Aug-06 5:05
Zac Howland16-Aug-06 5:05 
GeneralRe: File reading and writing Pin
Christian Graus15-Aug-06 11:03
protectorChristian Graus15-Aug-06 11:03 
QuestionRe: File reading and writing Pin
David Crow15-Aug-06 4:08
David Crow15-Aug-06 4:08 
AnswerRe: File reading and writing Pin
69 Bay15-Aug-06 5:05
69 Bay15-Aug-06 5:05 
QuestionIActiveDesktop Pin
Rinu_Raj14-Aug-06 23:03
Rinu_Raj14-Aug-06 23:03 
AnswerRe: IActiveDesktop [modified] Pin
Rinu_Raj14-Aug-06 23:08
Rinu_Raj14-Aug-06 23:08 
AnswerRe: IActiveDesktop Pin
Hamid_RT14-Aug-06 23:18
Hamid_RT14-Aug-06 23:18 
Questionsecurity library for Windows Mobile? Pin
George_George14-Aug-06 22:48
George_George14-Aug-06 22:48 
AnswerRe: security library for Windows Mobile? Pin
Mike Dimmick15-Aug-06 1:26
Mike Dimmick15-Aug-06 1:26 
GeneralRe: security library for Windows Mobile? Pin
George_George15-Aug-06 3:07
George_George15-Aug-06 3:07 
QuestionQuestion on Windows Network drive Pin
Jagadeesh VN14-Aug-06 22:43
Jagadeesh VN14-Aug-06 22:43 
QuestionI need help to create a basic program about series. Pin
magnifisa14-Aug-06 22:34
magnifisa14-Aug-06 22:34 
QuestionRe: I need help to create a basic program about series. Pin
David Crow15-Aug-06 4:10
David Crow15-Aug-06 4:10 
AnswerRe: I need help to create a basic program about series. Pin
Hamid_RT16-Aug-06 4:54
Hamid_RT16-Aug-06 4:54 
QuestionCGenericList Pin
jon-8014-Aug-06 22:24
professionaljon-8014-Aug-06 22:24 

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.