Click here to Skip to main content
15,891,004 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MCTS certification Pin
shanmugarajaa9-Feb-12 22:47
shanmugarajaa9-Feb-12 22:47 
GeneralRe: MCTS certification Pin
Rahul Rajat Singh15-Feb-12 20:15
professionalRahul Rajat Singh15-Feb-12 20:15 
QuestionUSB flash drive serial number in VC++ Pin
RomTibi9-Feb-12 5:06
RomTibi9-Feb-12 5:06 
AnswerRe: USB flash drive serial number in VC++ Pin
Chris Losinger9-Feb-12 5:32
professionalChris Losinger9-Feb-12 5:32 
QuestionHow to parse a file and store few strings in an array Pin
Faez Shingeri8-Feb-12 22:28
Faez Shingeri8-Feb-12 22:28 
AnswerRe: How to parse a file and store few strings in an array Pin
SandipG 8-Feb-12 22:38
SandipG 8-Feb-12 22:38 
GeneralRe: How to parse a file and store few strings in an array Pin
Faez Shingeri8-Feb-12 22:47
Faez Shingeri8-Feb-12 22:47 
GeneralRe: How to parse a file and store few strings in an array Pin
Richard MacCutchan8-Feb-12 23:13
mveRichard MacCutchan8-Feb-12 23:13 
Please use <pre> tags round your code (you can edit the above message) as it makes it so much easier to read.
Your call to strtok() should use a pattern of all the characters you wish to ignore, you can then use the first returned token on each line, something like:
C++
while(fgets(buf, bufsize, fp1) != NULL)
{
    tok = strtok(buf,"{ ,}");
    if (tok != NULL)
        printf("Token: %s\n", tok);
}	

Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman



QuestionRe: How to parse a file and store few strings in an array Pin
David Crow9-Feb-12 2:33
David Crow9-Feb-12 2:33 
AnswerRe: How to parse a file and store few strings in an array Pin
Richard MacCutchan9-Feb-12 2:58
mveRichard MacCutchan9-Feb-12 2:58 
GeneralRe: How to parse a file and store few strings in an array Pin
Faez Shingeri9-Feb-12 17:55
Faez Shingeri9-Feb-12 17:55 
GeneralRe: How to parse a file and store few strings in an array Pin
Richard MacCutchan9-Feb-12 22:04
mveRichard MacCutchan9-Feb-12 22:04 
GeneralRe: How to parse a file and store few strings in an array Pin
CPallini9-Feb-12 23:11
mveCPallini9-Feb-12 23:11 
GeneralRe: How to parse a file and store few strings in an array Pin
Richard MacCutchan10-Feb-12 0:42
mveRichard MacCutchan10-Feb-12 0:42 
GeneralRe: How to parse a file and store few strings in an array Pin
CPallini10-Feb-12 0:48
mveCPallini10-Feb-12 0:48 
GeneralRe: How to parse a file and store few strings in an array Pin
Richard MacCutchan10-Feb-12 0:57
mveRichard MacCutchan10-Feb-12 0:57 
GeneralRe: How to parse a file and store few strings in an array Pin
Faez Shingeri10-Feb-12 1:26
Faez Shingeri10-Feb-12 1:26 
GeneralRe: How to parse a file and store few strings in an array Pin
Richard MacCutchan10-Feb-12 6:26
mveRichard MacCutchan10-Feb-12 6:26 
GeneralRe: How to parse a file and store few strings in an array Pin
Faez Shingeri11-Feb-12 6:39
Faez Shingeri11-Feb-12 6:39 
GeneralRe: How to parse a file and store few strings in an array Pin
Richard MacCutchan11-Feb-12 7:11
mveRichard MacCutchan11-Feb-12 7:11 
GeneralRe: How to parse a file and store few strings in an array Pin
Faez Shingeri12-Feb-12 19:19
Faez Shingeri12-Feb-12 19:19 
GeneralRe: How to parse a file and store few strings in an array Pin
Richard MacCutchan12-Feb-12 21:39
mveRichard MacCutchan12-Feb-12 21:39 
GeneralRe: How to parse a file and store few strings in an array Pin
David Crow10-Feb-12 7:14
David Crow10-Feb-12 7:14 
QuestionDirectshow Pin
venkatesh528677-Feb-12 21:22
venkatesh528677-Feb-12 21:22 
AnswerRe: Directshow Pin
Richard MacCutchan7-Feb-12 22:31
mveRichard MacCutchan7-Feb-12 22:31 

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.