Click here to Skip to main content
15,908,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sscanf: parsing a file Pin
tom groezer26-Mar-10 3:16
tom groezer26-Mar-10 3:16 
GeneralRe: sscanf: parsing a file PinPopular
CPallini26-Mar-10 3:24
mveCPallini26-Mar-10 3:24 
GeneralRe: sscanf: parsing a file Pin
Covean26-Mar-10 3:29
Covean26-Mar-10 3:29 
GeneralRe: sscanf: parsing a file Pin
tom groezer26-Mar-10 3:55
tom groezer26-Mar-10 3:55 
GeneralRe: sscanf: parsing a file Pin
jeron126-Mar-10 4:27
jeron126-Mar-10 4:27 
GeneralRe: sscanf: parsing a file Pin
jeron126-Mar-10 3:55
jeron126-Mar-10 3:55 
GeneralRe: sscanf: parsing a file Pin
Tim Craig26-Mar-10 8:28
Tim Craig26-Mar-10 8:28 
AnswerRe: sscanf: parsing a file Pin
Iain Clarke, Warrior Programmer26-Mar-10 4:37
Iain Clarke, Warrior Programmer26-Mar-10 4:37 
I'm not quite sure what you've done to annoy CPallini... but he has my trust, so I assume you deserve the long flamewar above this post.

But *I'm* in a good mood...

I would not use the sscanf function at all for this.

One, the tabs / spaces are delimiters. In which case, read a line of text in, then use your favourite string classes Find function to get the next whitespace. Then parse the next up to that point. Delete the text you've parsed, and repeat.

OK, once you've broken the long line into stringlets, then you can use sscanf if you like!

Good luck,

Iain.
I have now moved to Sweden for love (awwww).

GeneralRe: sscanf: parsing a file Pin
CPallini26-Mar-10 9:25
mveCPallini26-Mar-10 9:25 
GeneralRe: sscanf: parsing a file Pin
Tim Craig26-Mar-10 18:21
Tim Craig26-Mar-10 18:21 
GeneralRe: sscanf: parsing a file Pin
CPallini27-Mar-10 5:30
mveCPallini27-Mar-10 5:30 
GeneralRe: sscanf: parsing a file Pin
Tim Craig27-Mar-10 8:13
Tim Craig27-Mar-10 8:13 
AnswerRe: sscanf: parsing a file Pin
David Crow26-Mar-10 4:47
David Crow26-Mar-10 4:47 
QuestionAdler32 Algorithm Doubts Pin
rupeshkp72825-Mar-10 23:42
rupeshkp72825-Mar-10 23:42 
QuestionRe: Adler32 Algorithm Doubts Pin
CPallini26-Mar-10 1:09
mveCPallini26-Mar-10 1:09 
AnswerRe: Adler32 Algorithm Doubts Pin
tom groezer26-Mar-10 1:38
tom groezer26-Mar-10 1:38 
GeneralRe: Adler32 Algorithm Doubts Pin
CPallini26-Mar-10 1:44
mveCPallini26-Mar-10 1:44 
AnswerRe: Adler32 Algorithm Doubts Pin
rupeshkp72828-Mar-10 19:19
rupeshkp72828-Mar-10 19:19 
QuestionWxWidgets question about wxFileSystem and wxFSFile Pin
brdavid25-Mar-10 21:28
brdavid25-Mar-10 21:28 
AnswerRe: WxWidgets question about wxFileSystem and wxFSFile Pin
Stuart Dootson25-Mar-10 21:54
professionalStuart Dootson25-Mar-10 21:54 
GeneralRe: WxWidgets question about wxFileSystem and wxFSFile Pin
brdavid26-Mar-10 0:26
brdavid26-Mar-10 0:26 
Questionlocalization issue Pin
Member 59031025-Mar-10 21:27
Member 59031025-Mar-10 21:27 
AnswerRe: localization issue Pin
KarstenK25-Mar-10 22:47
mveKarstenK25-Mar-10 22:47 
GeneralRe: localization issue Pin
Member 59031025-Mar-10 23:26
Member 59031025-Mar-10 23:26 
GeneralRe: localization issue Pin
Eugen Podsypalnikov25-Mar-10 23:35
Eugen Podsypalnikov25-Mar-10 23:35 

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.