Article View: ab.software.developers
Article #1239PROBLEMS WITH GRABBING TEXT FROM FILE AND THROWING IT INTO RAM FOR QUICK ACCESS
From: Chetan Phull
Date: Tue, 14 Jul 1998 00:00
Date: Tue, 14 Jul 1998 00:00
23 lines
1578 bytes
1578 bytes
I have a Visual basic program that has to have a textbox-like display that will scroll through a large text file. I can scroll through the file using the Open() and InputLine # functions but they read the file's text straight from the file. Since this file is very big (5 megs or so) reading from the hard disk and displaying to the screen takes a VERY long time. I got a tip that putting the WHOLE file into RAM and reading it from there would be a lot faster. How do I throw the intire contents of a textfile into ram and then display the contents of the file from there? I thought of this idea: PointerToTextFile* TEXT(c:\textfile.txt) txtWaves.text=TEXT This is wishful thinking, I know. To tinker around with memory like that using code, I'm guessing would be more complicated. If you could set me on the right steps to putting the text file into memory and then be able to scroll through it smoothly in a text box in run-time, please tell me how. Chetan phull@interlog.com
Technical Details
Message-ID:
<35abb56a.105781284@nntp.interlog.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f2ee,990127dc0c2ea6bc,start X-Google-Attributes: gid10f2ee,public From: phull@interlog.com (Chetan Phull) Subject: PROBLEMS WITH GRABBING TEXT FROM FILE AND THROWING IT INTO RAM FOR QUICK ACCESS Date: 1998/07/14 Message-ID: <35abb56a.105781284@nntp.interlog.com> X-Deja-AN: 371440746 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii NNTP-Posting-Time: 14 Jul 1998 19:39:00 GMT Organization: Trulogic Systems Inc. Mime-Version: 1.0 Newsgroups: ab.software.developers