Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sorry, the topic is "irc like textoutput" Pin
RobJones5-Oct-02 12:25
RobJones5-Oct-02 12:25 
GeneralCListCtrl adds blank items Pin
monrobot135-Oct-02 11:24
monrobot135-Oct-02 11:24 
GeneralRe: CListCtrl adds blank items Pin
monrobot135-Oct-02 11:33
monrobot135-Oct-02 11:33 
GeneralRe: CListCtrl adds blank items Pin
Michael Dunn5-Oct-02 17:47
sitebuilderMichael Dunn5-Oct-02 17:47 
GeneralRe: CListCtrl adds blank items Pin
monrobot136-Oct-02 2:18
monrobot136-Oct-02 2:18 
GeneralRe: CListCtrl adds blank items Pin
Michael Dunn6-Oct-02 6:06
sitebuilderMichael Dunn6-Oct-02 6:06 
GeneralRe: CListCtrl adds blank items Pin
monrobot136-Oct-02 9:51
monrobot136-Oct-02 9:51 
GeneralHelp! Pin
Sunnygirl5-Oct-02 10:19
Sunnygirl5-Oct-02 10:19 
hello!

i want to read a .txt file after i clicked a button in a dialogbased mfc-program.
can somebody give me an example code or links or tipps?

somebody gave me a short overview (here in this forum), but i make mistakes and don´t understand everything.

The overview:
create an ifstream object
call open
set file pointer to end using seekg
call tellg to get the number of bytes in the file
allocate that number of chars
set file pointer to beginning using seekg
call read
call close


Thanks
Sunny
GeneralRe: Help! Pin
User 66585-Oct-02 10:51
User 66585-Oct-02 10:51 
GeneralRe: Help! Pin
Sunnygirl5-Oct-02 11:57
Sunnygirl5-Oct-02 11:57 
GeneralRe: Help! Pin
RobJones5-Oct-02 12:53
RobJones5-Oct-02 12:53 
GeneralRe: Help! Pin
Sunnygirl5-Oct-02 13:41
Sunnygirl5-Oct-02 13:41 
GeneralRe: Help! Pin
alex.barylski5-Oct-02 17:22
alex.barylski5-Oct-02 17:22 
GeneralRe: Help! Pin
Sunnygirl5-Oct-02 22:40
Sunnygirl5-Oct-02 22:40 
GeneralRe: Help! Pin
alex.barylski5-Oct-02 23:59
alex.barylski5-Oct-02 23:59 
GeneralShell programing Pin
Member 135142965-Oct-02 9:19
Member 135142965-Oct-02 9:19 
GeneralRe: Shell programing Pin
Michael Dunn5-Oct-02 9:45
sitebuilderMichael Dunn5-Oct-02 9:45 
QuestionNo empty CControlBar??? Pin
Daniel Strigl5-Oct-02 8:40
Daniel Strigl5-Oct-02 8:40 
GeneralRecommended Advanced C++ Books :: C++ Pin
valikac5-Oct-02 5:22
valikac5-Oct-02 5:22 
GeneralRe: Recommended Advanced C++ Books :: C++ Pin
Paul M Watt5-Oct-02 6:21
mentorPaul M Watt5-Oct-02 6:21 
GeneralRe: Recommended Advanced C++ Books :: C++ Pin
valikac5-Oct-02 6:32
valikac5-Oct-02 6:32 
GeneralRe: Recommended Advanced C++ Books :: C++ Pin
Mike Nordell5-Oct-02 7:58
Mike Nordell5-Oct-02 7:58 
GeneralRe: Recommended Advanced C++ Books :: C++ Pin
Pavel Klocek5-Oct-02 8:01
Pavel Klocek5-Oct-02 8:01 
GeneralRe: Recommended Advanced C++ Books :: C++ Pin
valikac5-Oct-02 13:25
valikac5-Oct-02 13:25 
QuestionHow to select a item in a listbox? Pin
chen5-Oct-02 4:46
chen5-Oct-02 4:46 

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.