Article View: borland.public.cppbuilder.nativeapi
Article #12734Re: A file in memory
From: Leo Havm�ller
Date: Wed, 19 Nov 2003 13:56
Date: Wed, 19 Nov 2003 13:56
17 lines
1484 bytes
1484 bytes
"Antonio Farfan" <amfm0777@hotmail.com> wrote in message news:3fbb2ba8@newsgroups.borland.com... > Hi everybody: > When i open one file, all the content of this file is load in the memory?, > and if the answer is not, could be > done?. The idea is load all the file in the memory to decrement the time of > access of one application to > this file, (size of file is 8MB, and it is always read by the application.). The FILE_FLAG_SEQUENTIAL_SCAN attribute for CreateFile is intended for exactly this optimization. See http://msdn.microsoft.com/library/en-us/fileio/base/createfile.asp. Leo Havm�ller.
Technical Details
Message-ID:
<3fbb7699$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fbb2ba8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,dd3ffa1ba297c535 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-19 06:10:38 PST From: "Leo Havm�ller" <leh@-nospam-rtx.dk> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fbb2ba8@newsgroups.borland.com> Subject: Re: A file in memory Date: Wed, 19 Nov 2003 14:56:41 +0100 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 80.63.27.146 Message-ID: <3fbb7699$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069250201 80.63.27.146 (19 Nov 2003 05:56:41 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail