Article View: ab.software.developers
Article #1241HOW DO I BUFFER A FILE INTO A TEXT BOX?
From: Chetan Phull
Date: Wed, 15 Jul 1998 00:00
Date: Wed, 15 Jul 1998 00:00
19 lines
1164 bytes
1164 bytes
>You might consider opening the file in the binary mode and reading it into a
>buffer.
> Look up help on this mode and the LOF() statement.
I just read your e-mail again and I noticed this paragraph. Do you
have any idea how to open read a file into the buffer? LOF() will
just return the size of the file. So right now here's what I have in
mind:
Open("c:\text.txt" for binary read as #1)
<code to read file into buffer>
txtBox.Text=?
I'm totally knew to this way of thinking -- I've never buffered a file
before, especially not one this big. (5 megs or so) Could you help me
out here?
Chetan
phull@interlog.com
Technical Details
Message-ID:
<35aec544.1786433@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,fbab302a0828121,start X-Google-Attributes: gid10f2ee,public From: phull@interlog.com (Chetan Phull) Subject: HOW DO I BUFFER A FILE INTO A TEXT BOX? Date: 1998/07/15 Message-ID: <35aec544.1786433@nntp.interlog.com> X-Deja-AN: 371695681 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii NNTP-Posting-Time: 15 Jul 1998 14:58:20 GMT Organization: Trulogic Systems Inc. Mime-Version: 1.0 Newsgroups: ab.software.developers