can i get text file data in my array?
can i get text file data in my array?
What kind is your array? each line one element? .... See the documentation at QFile. Assuming you need to read in a text file and want to store it in a QStringList use:
Qt Code:
return; QStringList list; while (!in.atEnd()) list.append(in.readLine());To copy to clipboard, switch view to plain text mode
Bookmarks