I\'m new to C++, and would like to know how to read a file line-by-line and append each line in an array.
For example, say we have file example.txt that
example.txt