Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to open a *.txt file Pin
Hamid_RT22-Jun-06 20:10
Hamid_RT22-Jun-06 20:10 
Questionvalues reading from a text document Pin
divisameer22-Jun-06 3:46
divisameer22-Jun-06 3:46 
AnswerRe: values reading from a text document Pin
_AnsHUMAN_ 22-Jun-06 3:50
_AnsHUMAN_ 22-Jun-06 3:50 
GeneralRe: values reading from a text document Pin
Cedric Moonen22-Jun-06 3:54
Cedric Moonen22-Jun-06 3:54 
GeneralRe: values reading from a text document Pin
toxcct22-Jun-06 3:58
toxcct22-Jun-06 3:58 
GeneralRe: values reading from a text document Pin
_AnsHUMAN_ 22-Jun-06 4:02
_AnsHUMAN_ 22-Jun-06 4:02 
AnswerRe: values reading from a text document Pin
Stephen Hewitt22-Jun-06 4:00
Stephen Hewitt22-Jun-06 4:00 
AnswerRe: values reading from a text document Pin
David Crow22-Jun-06 4:01
David Crow22-Jun-06 4:01 
For starters:

int n1, n2;
FILE *pFile = fopen(..., "rt");
while (! feof(pFile))
{
    fscanf("%d %d", &n1, &n2);
    // do something with n1 and n2
}
fclose(pFile);



"The largest fire starts but with the smallest spark." - David Crow

"Judge not by the eye but by the heart." - Native American Proverb


AnswerRe: values reading from a text document Pin
Zac Howland22-Jun-06 4:11
Zac Howland22-Jun-06 4:11 
Questiondynamic radio button Pin
Tara1422-Jun-06 3:33
Tara1422-Jun-06 3:33 
QuestionRe: dynamic radio button Pin
David Crow22-Jun-06 3:37
David Crow22-Jun-06 3:37 
AnswerRe: dynamic radio button Pin
Tara1422-Jun-06 3:41
Tara1422-Jun-06 3:41 
GeneralRe: dynamic radio button [modified] Pin
Viorel.22-Jun-06 3:49
Viorel.22-Jun-06 3:49 
GeneralRe: dynamic radio button Pin
Tara1422-Jun-06 3:53
Tara1422-Jun-06 3:53 
GeneralRe: dynamic radio button Pin
David Crow22-Jun-06 3:56
David Crow22-Jun-06 3:56 
GeneralRe: dynamic radio button Pin
_AnsHUMAN_ 22-Jun-06 3:59
_AnsHUMAN_ 22-Jun-06 3:59 
GeneralRe: dynamic radio button Pin
Tara1422-Jun-06 3:57
Tara1422-Jun-06 3:57 
QuestionRe: dynamic radio button Pin
Tara1422-Jun-06 4:02
Tara1422-Jun-06 4:02 
AnswerRe: dynamic radio button Pin
David Crow22-Jun-06 4:08
David Crow22-Jun-06 4:08 
AnswerRe: dynamic radio button Pin
Viorel.22-Jun-06 4:13
Viorel.22-Jun-06 4:13 
GeneralRe: dynamic radio button Pin
Tara1422-Jun-06 4:19
Tara1422-Jun-06 4:19 
GeneralRe: dynamic radio button Pin
_AnsHUMAN_ 22-Jun-06 3:54
_AnsHUMAN_ 22-Jun-06 3:54 
GeneralRe: dynamic radio button Pin
David Crow22-Jun-06 3:55
David Crow22-Jun-06 3:55 
Questiongetting content of console window Pin
kumarkar22-Jun-06 2:40
kumarkar22-Jun-06 2:40 
AnswerRe: getting content of console window Pin
_AnsHUMAN_ 22-Jun-06 2:53
_AnsHUMAN_ 22-Jun-06 2:53 

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.