String Parsing
-
I need to open a Text file and read the first line which is like "Run","FileNo","Distance",... Then i've pickup words like Run,FileNo. I was able to open, read Line using CStdioFile.ReadLine(); How to parse the line and get the words?? Thanks In advance. Warm Regards, KKR
-
I need to open a Text file and read the first line which is like "Run","FileNo","Distance",... Then i've pickup words like Run,FileNo. I was able to open, read Line using CStdioFile.ReadLine(); How to parse the line and get the words?? Thanks In advance. Warm Regards, KKR
Hi, From many other ways you can try standard C functions like strtock(...) Vitali http://www.creative-case.com[^]
-
Hi, From many other ways you can try standard C functions like strtock(...) Vitali http://www.creative-case.com[^]
-
Thanks for Flashy Response, Now My entire line is in a CString , shall i have to convert it to char* , to apply those functions like strtock(); Warm Regards, KKR
this is very simple: use syntax similar: strtok( (char*)(LPCTSTR)CStringvariable, ... ); or use GetBuffer member from CString Vitali http://www.creative-case.com[^]
-
this is very simple: use syntax similar: strtok( (char*)(LPCTSTR)CStringvariable, ... ); or use GetBuffer member from CString Vitali http://www.creative-case.com[^]