Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CPropertySheet CPropertyPage quirk Pin
Ben80521-Jul-03 13:13
Ben80521-Jul-03 13:13 
GeneralRe: CPropertySheet CPropertyPage quirk Pin
Ben80521-Jul-03 13:15
Ben80521-Jul-03 13:15 
GeneralRe: CPropertySheet CPropertyPage quirk Pin
valikac21-Jul-03 19:32
valikac21-Jul-03 19:32 
GeneralRe: CPropertySheet CPropertyPage quirk Pin
Ben80522-Jul-03 7:41
Ben80522-Jul-03 7:41 
QuestionDrive letter? Pin
Bob Stanneveld21-Jul-03 11:17
Bob Stanneveld21-Jul-03 11:17 
AnswerRe: Drive letter? Pin
J. Dunlap21-Jul-03 11:39
J. Dunlap21-Jul-03 11:39 
GeneralRe: Drive letter? Pin
Bob Stanneveld21-Jul-03 12:05
Bob Stanneveld21-Jul-03 12:05 
QuestionFast read in data? Pin
Kevein21-Jul-03 11:15
Kevein21-Jul-03 11:15 
Hello!

I am writing a program which needs to read the data file (in plain text format) to the memory structure (array).

Currently, I am reading the text data file one line at a time using CStdioFile and CString. For each line in the CString, from left to right, decode each segment (separated by ,) into another CString and then atof it to a real number. This is very slow and read in a 600K file will needs 10 seconds or more. Frown | :-(

How can I do it faster using C++? (I don't want to mix C in it.)

Thanks a lot.

The data file looks like:
134.235, 235.23, 2353.25, 252.23, 2356.247, .....
234.235, 635.23, 6233.25, 772.23, 8356.247, .....
534.235, 895.23, 3553.25, 243.23, 7856.247, .....

I am using a data structure similar to a 2D array to hold it.

AnswerRe: Fast read in data? Pin
Neville Franks21-Jul-03 12:02
Neville Franks21-Jul-03 12:02 
AnswerRe: Fast read in data? Pin
Bob Stanneveld21-Jul-03 12:02
Bob Stanneveld21-Jul-03 12:02 
GeneralEnabling a project for context sensitive help Pin
haritadala21-Jul-03 10:19
haritadala21-Jul-03 10:19 
GeneralRe: Enabling a project for context sensitive help Pin
Toni7821-Jul-03 13:47
Toni7821-Jul-03 13:47 
GeneralIDE Dialog Problem Pin
Grahamfff21-Jul-03 10:08
Grahamfff21-Jul-03 10:08 
Generalpath to exe file Pin
martin_j21-Jul-03 8:11
martin_j21-Jul-03 8:11 
GeneralRe: path to exe file Pin
Larry Antram21-Jul-03 8:33
Larry Antram21-Jul-03 8:33 
GeneralRe: path to exe file Pin
Toni7821-Jul-03 9:24
Toni7821-Jul-03 9:24 
GeneralRe: path to exe file Pin
martin_j21-Jul-03 20:03
martin_j21-Jul-03 20:03 
GeneralRe: path to exe file Pin
Jens Doose21-Jul-03 22:20
Jens Doose21-Jul-03 22:20 
GeneralEmbedded HTML pages + images Pin
Tommy2k21-Jul-03 7:53
Tommy2k21-Jul-03 7:53 
GeneralRe: Embedded HTML pages + images Pin
Michael Dunn21-Jul-03 14:07
sitebuilderMichael Dunn21-Jul-03 14:07 
GeneralRe: Embedded HTML pages + images Pin
Tommy2k24-Jul-03 12:21
Tommy2k24-Jul-03 12:21 
GeneralRe: Embedded HTML pages + images Pin
Michael Dunn24-Jul-03 12:33
sitebuilderMichael Dunn24-Jul-03 12:33 
GeneralRe: Embedded HTML pages + images Pin
Tommy2k24-Jul-03 22:58
Tommy2k24-Jul-03 22:58 
QuestionResizing image right bottom? Pin
Dominik Reichl21-Jul-03 7:26
Dominik Reichl21-Jul-03 7:26 
AnswerRe: Resizing image right bottom? Pin
J. Dunlap21-Jul-03 8:17
J. Dunlap21-Jul-03 8:17 

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.