Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLoading a Resource Pin
Anonymous20-Sep-05 19:05
Anonymous20-Sep-05 19:05 
AnswerRe: Loading a Resource Pin
Johann Gerell20-Sep-05 19:33
Johann Gerell20-Sep-05 19:33 
Questionmewtocol format programming Pin
jyhhaur20-Sep-05 17:24
sussjyhhaur20-Sep-05 17:24 
QuestionPrivate memory usage Pin
jimmiejams20-Sep-05 15:27
jimmiejams20-Sep-05 15:27 
AnswerRe: Private memory usage Pin
Blake Miller20-Sep-05 16:00
Blake Miller20-Sep-05 16:00 
GeneralRe: Private memory usage Pin
jimmiejams20-Sep-05 16:20
jimmiejams20-Sep-05 16:20 
GeneralRe: Private memory usage Pin
ThatsAlok20-Sep-05 18:59
ThatsAlok20-Sep-05 18:59 
GeneralRe: Private memory usage Pin
Blake Miller21-Sep-05 4:07
Blake Miller21-Sep-05 4:07 
Questioncommand message Pin
Member 216100420-Sep-05 15:04
Member 216100420-Sep-05 15:04 
AnswerRe: command message Pin
John R. Shaw20-Sep-05 23:49
John R. Shaw20-Sep-05 23:49 
QuestionModeless Dialog Box Pin
suzie10020-Sep-05 14:19
suzie10020-Sep-05 14:19 
AnswerRe: Modeless Dialog Box Pin
Christian Graus20-Sep-05 14:23
protectorChristian Graus20-Sep-05 14:23 
AnswerRe: Modeless Dialog Box Pin
Shog920-Sep-05 18:14
sitebuilderShog920-Sep-05 18:14 
QuestionWriting/Reading Large files Pin
Jenleonard20-Sep-05 13:56
Jenleonard20-Sep-05 13:56 
AnswerRe: Writing/Reading Large files Pin
Christian Graus20-Sep-05 14:26
protectorChristian Graus20-Sep-05 14:26 
GeneralRe: Writing/Reading Large files Pin
Anonymous20-Sep-05 14:32
Anonymous20-Sep-05 14:32 
GeneralRe: Writing/Reading Large files Pin
Christian Graus20-Sep-05 14:38
protectorChristian Graus20-Sep-05 14:38 
AnswerRe: Writing/Reading Large files Pin
Axter20-Sep-05 19:06
professionalAxter20-Sep-05 19:06 
AnswerRe: Writing/Reading Large files Pin
kakan20-Sep-05 19:16
professionalkakan20-Sep-05 19:16 
Hello.
One way to speed up file handling (while maintaining ths stream I/O) could be to use fread() and fwrite(), using a buffer size that match the disk sector size of the file. Since the normal sector size is 512 bytes, read and write blocks that is an even multiplier of 512.
(I guess the most effective disk I/O would be to read/write the size of a complete disk cluster at once, but I'm not sure).

This means that you have to use your own code to extract/create the data (text lines) in the buffer, but that job has to take place anyhow. If it´s done in the runtime library or in your own code dosen't really matter (provided that your own code is efficially written).

Another way could be to use the native Win32-API and to use overlapped I/O. But it works (logically) in the same way as fread/fwrite, which means you still have to write your own code to handle your buffer.


GeneralRe: Writing/Reading Large files Pin
John R. Shaw21-Sep-05 0:31
John R. Shaw21-Sep-05 0:31 
GeneralRe: Writing/Reading Large files Pin
Jenleonard24-Sep-05 12:58
Jenleonard24-Sep-05 12:58 
GeneralRe: Writing/Reading Large files Pin
John R. Shaw25-Sep-05 20:10
John R. Shaw25-Sep-05 20:10 
QuestionDual Monitors - 1 needs to sleep Pin
gravits20-Sep-05 10:58
gravits20-Sep-05 10:58 
AnswerRe: Dual Monitors - 1 needs to sleep Pin
Neagoe Gabriel20-Sep-05 21:29
Neagoe Gabriel20-Sep-05 21:29 
QuestionHow to access environment variables? Pin
Member 227578520-Sep-05 10:24
Member 227578520-Sep-05 10:24 

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.