That is, you begin thinking about how you will store the document you are editing in memory so that you can manipulate it in your program. What you need is a way to store the information you are entering in a form that can be manipulated quickly and easily. You believe that one way to do that is to organize the data on the basis of lines of characters. Give what we have discussed so far, the only thing you have at your disposal at this point is an array. This array has a total size of 80,000 characters.
Every line is short, but there are thousands of lines.
Some special-purpose text files have very long lines. In most modern editors you can open multiple files at one time. Let's say you set a maximum of 10 open files at once, a maximum line length of 1,000 characters and a maximum file size of 50,000 lines. Most computers today are going to have a problem with an array that size. They simply do not have the RAM, or even the virtual memory space, to support an array that large.