Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: storing a windows postion in the registry... Pin
Christian26-Oct-00 17:32
Christian26-Oct-00 17:32 
GeneralRe: storing a windows postion in the registry... Pin
paranoid android27-Oct-00 10:26
paranoid android27-Oct-00 10:26 
GeneralRe: storing a windows postion in the registry... Pin
Paolo Messina26-Oct-00 23:52
professionalPaolo Messina26-Oct-00 23:52 
GeneralRe: storing a windows postion in the registry... Pin
André Dewispelaere27-Oct-00 5:47
André Dewispelaere27-Oct-00 5:47 
GeneralRe: storing a windows postion in the registry... Pin
Philip Nicoletti27-Oct-00 7:38
Philip Nicoletti27-Oct-00 7:38 
GeneralRe: storing a windows postion in the registry... Pin
paranoid android27-Oct-00 10:28
paranoid android27-Oct-00 10:28 
Generalleft one thing out... Pin
paranoid android27-Oct-00 16:17
paranoid android27-Oct-00 16:17 
GeneralReading delimited files... Pin
Joshua Guy26-Oct-00 7:19
Joshua Guy26-Oct-00 7:19 
As you probably noticed from this post I am a very new newbie to VC++. Here is my problem. I need to read in a test file that might have a format like this... string, int, int. I know in java you can use a string tokenizer to read in each value separatly and by line. I can't seem to figure this out in C++. This is what I have been doing.

CFile myFile("test.txt", CFile::modeWrite);
BYTE buffer[4096];
CString input;
input = myFile.Read(buffer, 4096);

Once I get it into a string object I can use the method SpanExcluding to get a string from the beginning to the first character I specify not to read. I can't seem to get past it thought. I know my approach is probably all wrong so I don't care if you tear it to shreads. I frequently visit this site and know you guys know what you;re doing so thanks for any advice in advance.

Joshua
GeneralRe: Reading delimited files... Pin
Michael Dunn26-Oct-00 19:03
sitebuilderMichael Dunn26-Oct-00 19:03 
GeneralRe: Reading delimited files... Pin
Joshua27-Oct-00 11:34
Joshua27-Oct-00 11:34 
GeneralRe: Reading delimited files... Pin
Roger Scudder27-Oct-00 11:26
Roger Scudder27-Oct-00 11:26 
GeneralRe: Reading delimited files... Pin
Joshua27-Oct-00 11:40
Joshua27-Oct-00 11:40 
GeneralInvisible buttons Pin
David Gallagher26-Oct-00 6:54
David Gallagher26-Oct-00 6:54 
QuestionSetText doesn't work on TextBox? Pin
Member 1176625726-Oct-00 5:38
Member 1176625726-Oct-00 5:38 
AnswerRe: SetText doesn't work on TextBox? Pin
Brendan Tregear26-Oct-00 15:53
Brendan Tregear26-Oct-00 15:53 
Generalcom client crash Pin
P e t e r25-Oct-00 23:23
P e t e r25-Oct-00 23:23 
GeneralUsing MSXML.DLL in Visual C++ 5 Pin
Alexander Bischofberger25-Oct-00 21:48
Alexander Bischofberger25-Oct-00 21:48 
GeneralVERSION resource question Pin
Jonathan Gilligan25-Oct-00 20:09
Jonathan Gilligan25-Oct-00 20:09 
GeneralRe: VERSION resource question Pin
Mike Eriksson27-Oct-00 1:56
Mike Eriksson27-Oct-00 1:56 
GeneralRe: VERSION resource question Pin
Jonathan Gilligan27-Oct-00 17:11
Jonathan Gilligan27-Oct-00 17:11 
QuestionHow to make toolbar in the scrollbar? Pin
1mao25-Oct-00 14:21
suss1mao25-Oct-00 14:21 
GeneralDCOM Server Pin
Roger25-Oct-00 9:42
Roger25-Oct-00 9:42 
GeneralRe: DCOM Server Pin
Roger26-Oct-00 1:33
Roger26-Oct-00 1:33 
GeneralRe: DCOM Server Pin
Roger31-Oct-00 2:00
Roger31-Oct-00 2:00 
GeneralRe: DCOM Server Pin
Roger31-Oct-00 2:01
Roger31-Oct-00 2:01 

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.