經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供