Click here to Skip to main content
15,919,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Handling a double click Pin
Jader892-Mar-06 10:47
Jader892-Mar-06 10:47 
GeneralRe: Handling a double click Pin
David Crow2-Mar-06 10:58
David Crow2-Mar-06 10:58 
Questionloop processing Pin
ronwurster2-Mar-06 9:51
ronwurster2-Mar-06 9:51 
AnswerRe: loop processing Pin
David Crow2-Mar-06 9:53
David Crow2-Mar-06 9:53 
GeneralRe: loop processing Pin
ronwurster3-Mar-06 4:33
ronwurster3-Mar-06 4:33 
Questiongetline from file Pin
Peter Charlesworth2-Mar-06 9:34
Peter Charlesworth2-Mar-06 9:34 
AnswerRe: getline from file Pin
David Crow2-Mar-06 9:52
David Crow2-Mar-06 9:52 
GeneralRe: getline from file Pin
Peter Charlesworth2-Mar-06 9:57
Peter Charlesworth2-Mar-06 9:57 
Well, what I'm trying to accomplish is this:

Suppose a file named "example.txt" has this as content:

<br />
This is line one.<br />
This is the second line.<br />
As you can guess, this is the third line.<br />


And i run the program i mentioned above, then it would output this:

<br />
This is line one.<br />
This is the second line.<br />
As you can guess, this is the third line.<br />


But it's supposed to output this:

<br />
This is line one.<br />


Getline... Get one line and then execute the next piece of code, but instead
it gets the contents of the entire file.

I use Borland C++ 5.5 as my compiler, maybe that my problem is a problem just with my
compiler.

Anyway, thank for responding!

Peter
GeneralRe: getline from file Pin
David Crow2-Mar-06 10:05
David Crow2-Mar-06 10:05 
GeneralRe: getline from file Pin
Peter Charlesworth3-Mar-06 3:01
Peter Charlesworth3-Mar-06 3:01 
Questionembedded VC and activesync problem Pin
neodan2-Mar-06 9:27
neodan2-Mar-06 9:27 
AnswerRe: embedded VC and activesync problem Pin
Mauro Leggieri2-Mar-06 16:11
Mauro Leggieri2-Mar-06 16:11 
GeneralRe: embedded VC and activesync problem Pin
neodan2-Mar-06 21:15
neodan2-Mar-06 21:15 
Questioninteger/ character Pin
cuteee2-Mar-06 7:20
cuteee2-Mar-06 7:20 
AnswerRe: integer/ character Pin
David Crow2-Mar-06 7:51
David Crow2-Mar-06 7:51 
QuestionRe: integer/ character Pin
cuteee2-Mar-06 8:07
cuteee2-Mar-06 8:07 
AnswerRe: integer/ character Pin
David Crow2-Mar-06 8:24
David Crow2-Mar-06 8:24 
QuestionCalling .exe withing project. Pin
CodeGoose2-Mar-06 6:59
CodeGoose2-Mar-06 6:59 
AnswerRe: Calling .exe withing project. Pin
Brett Peirce2-Mar-06 7:10
Brett Peirce2-Mar-06 7:10 
AnswerRe: Calling .exe withing project. Pin
David Crow2-Mar-06 7:47
David Crow2-Mar-06 7:47 
Questionhelp plz Pin
mechalien2-Mar-06 6:43
mechalien2-Mar-06 6:43 
AnswerRe: help plz Pin
Maximilien2-Mar-06 6:52
Maximilien2-Mar-06 6:52 
AnswerRe: help plz Pin
Peter Charlesworth2-Mar-06 9:40
Peter Charlesworth2-Mar-06 9:40 
AnswerRe: help plz Pin
ThatsAlok2-Mar-06 17:27
ThatsAlok2-Mar-06 17:27 
AnswerRe: help plz Pin
DoctorEd5-Mar-06 10:36
DoctorEd5-Mar-06 10:36 

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.