 |
read line of text from file into array | DaniWeb
Though ,not a good approach but the following approach does work.(if your input contains texts which are separated by more than a couple of newlines,expect some unexpected characters in the output) Inside the while loop while (getline(filename, line)) //L
www.daniweb.com |
 |