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

C / C++ / MFC

 
GeneralRe: double overflow vc++6 Pin
manolomikasa6-Apr-07 7:30
manolomikasa6-Apr-07 7:30 
QuestionDelete records in Recordset in VC Pin
cy163@hotmail.com5-Apr-07 5:39
cy163@hotmail.com5-Apr-07 5:39 
QuestionRe: Delete records in Recordset in VC Pin
David Crow5-Apr-07 5:53
David Crow5-Apr-07 5:53 
AnswerRe: Delete records in Recordset in VC Pin
krmed5-Apr-07 7:22
krmed5-Apr-07 7:22 
QuestionHow to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 5:25
Arris745-Apr-07 5:25 
AnswerRe: How to speed up copy of .txt files into arrays? Pin
led mike5-Apr-07 5:32
led mike5-Apr-07 5:32 
AnswerRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 5:55
Arris745-Apr-07 5:55 
AnswerRe: How to speed up copy of .txt files into arrays? Pin
David Crow5-Apr-07 6:01
David Crow5-Apr-07 6:01 
Arris7 wrote:
But I do not want to copy all the file. For example a just need to start at line 250000 and stop at line 3000000.


Use the CFile::Seek() method to go to offset 250000*length_of_line. Without testing, this is 4500000.

Arris7 wrote:
I currently use CFile and I copy the whole file into a buffer and I close the file.


I would consider using CStdioFile with CMemFile. That way your file is processed in memory, rather than on disk, and you can utilize line-parsing functions.


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 6:20
Arris745-Apr-07 6:20 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
led mike5-Apr-07 6:28
led mike5-Apr-07 6:28 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 7:17
Arris745-Apr-07 7:17 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
malaugh5-Apr-07 10:55
malaugh5-Apr-07 10:55 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 11:14
Arris745-Apr-07 11:14 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
David Crow5-Apr-07 6:32
David Crow5-Apr-07 6:32 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 7:19
Arris745-Apr-07 7:19 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
PJ Arends5-Apr-07 8:00
professionalPJ Arends5-Apr-07 8:00 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
David Crow5-Apr-07 8:15
David Crow5-Apr-07 8:15 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
led mike5-Apr-07 8:54
led mike5-Apr-07 8:54 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 9:20
Arris745-Apr-07 9:20 
GeneralRe: How to speed up copy of .txt files into arrays? Pin
Arris745-Apr-07 9:33
Arris745-Apr-07 9:33 
QuestionSCSI_PASS_THROUGH_DIRECT problems Pin
FoxholeWilly5-Apr-07 5:07
FoxholeWilly5-Apr-07 5:07 
QuestionWMI Pin
saisp5-Apr-07 4:48
saisp5-Apr-07 4:48 
QuestionRe: WMI Pin
David Crow5-Apr-07 6:05
David Crow5-Apr-07 6:05 
AnswerRe: WMI Pin
saisp5-Apr-07 7:04
saisp5-Apr-07 7:04 
GeneralRe: WMI Pin
David Crow5-Apr-07 7:19
David Crow5-Apr-07 7:19 

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.