I want to use an algorithm to reduce the memory used to save a specific text file. I really don't know how the text is stored, but I have an idea.
It would be better to expand the open source text editor (if yes, than which) or write a text editor.
It would be nice if someone could also give me a link or tutorial on some of the basics of text editors and how to store data.
Edited to add
To clarify what I wanted to do, instead of saving duplicate words, create a hash table and save the address where it should be placed.
This way I will not keep duplicates.
This would become specific to a particular text editor.
Update
Thanks to everyone that I received that you will all try to say. In any case, all I wanted to do was, instead of saving duplicate words, make a hash table and save the address where it should be placed.
That I would not keep duplicates.
Yes, and that would be specific to a particular text editor. never realized that.
source
share