• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

How to read/write text files > 32K ?

I am using CEditView as my primary text editing control, problem is, if  I use the default serialization code,
((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);

It can only read up to 32KB file size.

How should I do to write a simple editor that can read/write unlimited file size?

I am thinking of taking out the serialization code and use CFile's read/write classes to perform the I/O stuff.  But then I don't know how to let MFC update the window text when reading a file, or write the window's content to a file.

Any ideas?
I am using VC++ 4.2 + Windows 95.
0
zrokool
Asked:
zrokool
1 Solution
 
mbhaktaCommented:
What version of VC++, OS are you working on ?
0
 
zrokoolAuthor Commented:
Edited text of question
0
 
bola053097Commented:
Have you tried the RichEditCtrl? It basically contains functions
that are a superset of the CEdit control and your code should
be able to run using the RichEditCtrl with very minor modifications.

Of course, it can read files of unlimited sizes...
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now