title: Is saving a large file into char array is correct?
body: <p>I have a real-time project that have a heavy process on each line of some text file,what do you suggest for storing that text?</p>
  
  <p>what I do now, is to store all the text file in a char* variable, and then work with with that variable, instead of the file, my problem is when the text goes bigger what can I do? and there is possibility to reach the limitation of char array, and memory heap is going to get bigger:(</p>
  
  <p>Another solution I have in mind is that every time I want that particular line of text, I go through the file and read it, and work with it, but this solution makes my program so slow, and as I mention earlier, the time is important for me, what do you guys suggest for it?</p>
  
  <p><strong>Is there another way which is fast enough so that I can use it?</strong> </p>