Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file to large for memo

Status
Not open for further replies.

butthead

Programmer
Feb 24, 2002
545
US
I have a seemingly small text file I want too load
into a memo. Yet the file wont load because the
error messsage says its to large. The maxlength
is set to 0 which does not limit the size. I have
read too that limits may be imposed by the operating
system. I am using builder 3 and I wonder if this
is a limitation imposed onto the software to
inspire me to fork over the bucks. does any one
know of a workaround. buffersize and were??
 
Not familiar with borland 3, but are you using the LoadFromFile property of the memo box to load your text file?
 
I don't think the problem is BCB 3. Somewhere I have a snippet that will tell you how big the memo can be. I suspect that you make have to find the size of the memo, take that much out of the file, then enable a NEXT button for the user to hit. Let me know if you want that snippet.

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
I am using the LoadFromFile function. I know that notepad has a limit.
the notepad limit would be ecceptable as this would greatly increase
the size limit for me. I was wondering if the other major text editors
had to over come this or similiar limits by loading the file into an array
and then loading sections of this as needed to the text display. I wrote
some code a few years ago to do just this as I was learning C. I wrote my
own basic text editor for dos and that is how I handled the text. If this
is my only alternative I guess I should start pounding on the keys. I am
like the proverbial monkey. The longer I hit the keys the more likely
something useful will apear on the screen.

Just feeling lazy this month and am looking for the easier softer way.

I would like to see the snippet as any information will be helpfull!!!!

Thanks (tomcruz@ev1.net)
 
MultiEdit buffers the file being read. It only picks up enough of a file to fit the screen's buffer and then keeps the rest on the disk.

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top