Article View: borland.public.cppbuilder.nativeapi
Article #12733Re: A file in memory
From: Hans Galema
Date: Wed, 19 Nov 2003 11:50
Date: Wed, 19 Nov 2003 11:50
21 lines
1665 bytes
1665 bytes
Antonio Farfan wrote: > When i open one file, all the content of this file is load in the memory?, No, the OS buffers a part of the file. One time windows did about 64 Kbyte. But maybe this is more and adjustable now. > and if the answer is not, could be > done?. Then you have to do it yourself. > 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.). > Perhaps this is a bad idea. Determine the size of the file, declare a buffer of that size and open and load the file in the buffer, close the file. Hans.
Technical Details
Message-ID:
<3fbb5836@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.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-7-bit X-Google-Thread: 10cc67,dd3ffa1ba297c535 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-19 04:09:28 PST Date: Wed, 19 Nov 2003 12:50:30 +0100 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: A file in memory References: <3fbb2ba8@newsgroups.borland.com> In-Reply-To: <3fbb2ba8@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <3fbb5836@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069242422 129.125.108.11 (19 Nov 2003 03:47:02 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail