Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: newbie question Pin
Christian Graus20-Oct-02 21:57
protectorChristian Graus20-Oct-02 21:57 
GeneralRe: newbie question Pin
MVH20-Oct-02 22:17
MVH20-Oct-02 22:17 
GeneralRe: newbie question Pin
Ozgur Aydin Yuksel20-Oct-02 22:23
Ozgur Aydin Yuksel20-Oct-02 22:23 
GeneralRe: newbie question Pin
Christian Graus20-Oct-02 22:24
protectorChristian Graus20-Oct-02 22:24 
GeneralSolved(?) Pin
MVH20-Oct-02 22:39
MVH20-Oct-02 22:39 
GeneralText editor buffer Pin
alex.barylski20-Oct-02 20:26
alex.barylski20-Oct-02 20:26 
GeneralRe: Text editor buffer Pin
Pavel Klocek20-Oct-02 23:49
Pavel Klocek20-Oct-02 23:49 
GeneralRe: Text editor buffer Pin
Neville Franks21-Oct-02 0:39
Neville Franks21-Oct-02 0:39 
There are many factors to weigh up such as, how big are the files you want to handle, how long are the lines, do you need fast random access to a line, will the file undergo mass frequent changes, is being constrained by memory an issue (editing a 250M file in memory may not be feasible), how many files do you want to be able to edit at once, etc.etc.

If you are only working with small files, say < 10K lines then an in memory, linked list may be appropriate. For larger files a disk based implementation is likely the best approach. An array of strings is unlikely to be workable if lines are inserted and deleted frequently, or change length as there would be too much time spent shuffling the heap around.

In ED (see sig) I essentially use a database which provides fast random (indexed) and sequential access to any line, the ability to work with files of any size and any number of files, with disk space the only real constraint.

There are various text book algorithms around for this. I don't have any references on hand but try doing a Google search.

Neville Franks, Author of ED for Windows. www.getsoft.com
GeneralRe: Text editor buffer Pin
Rang3r21-Oct-02 1:08
Rang3r21-Oct-02 1:08 
Generalthesraus Pin
fordge20-Oct-02 20:13
fordge20-Oct-02 20:13 
Generalget back the lParam of TREEITEM Pin
Anonymous20-Oct-02 19:44
Anonymous20-Oct-02 19:44 
GeneralRe: get back the lParam of TREEITEM Pin
Ozgur Aydin Yuksel20-Oct-02 22:15
Ozgur Aydin Yuksel20-Oct-02 22:15 
GeneralGet page immediately after html post Pin
hui_km20-Oct-02 19:17
hui_km20-Oct-02 19:17 
GeneralRe: Get page immediately after html post Pin
Nish Nishant20-Oct-02 19:25
sitebuilderNish Nishant20-Oct-02 19:25 
GeneralRe: Get page immediately after html post Pin
Stephane Rodriguez.20-Oct-02 19:36
Stephane Rodriguez.20-Oct-02 19:36 
GeneralRe: Get page immediately after html post Pin
Nish Nishant20-Oct-02 19:41
sitebuilderNish Nishant20-Oct-02 19:41 
GeneralReplaying Events Pin
p_khasnis20-Oct-02 17:47
p_khasnis20-Oct-02 17:47 
GeneralRe: Replaying Events Pin
David Salter21-Oct-02 10:26
David Salter21-Oct-02 10:26 
Generalgettting filename from url.. Pin
itblue20-Oct-02 17:00
itblue20-Oct-02 17:00 
GeneralRe: gettting filename from url.. Pin
valikac20-Oct-02 17:11
valikac20-Oct-02 17:11 
GeneralRe: gettting filename from url.. Pin
itblue20-Oct-02 18:19
itblue20-Oct-02 18:19 
GeneralRe: gettting filename from url.. Pin
Michael Dunn20-Oct-02 21:25
sitebuilderMichael Dunn20-Oct-02 21:25 
GeneralRe: gettting filename from url.. Pin
dabs21-Oct-02 6:03
dabs21-Oct-02 6:03 
QuestionLparam and Param ? Pin
imran_rafique20-Oct-02 16:57
imran_rafique20-Oct-02 16:57 
GeneralClipboard into Notepad Pin
Shay Harel20-Oct-02 16:41
Shay Harel20-Oct-02 16:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.