i would like to insert my data from txt file to array.
but each line of my txt file contains more than one data.
eg : "Data1","Data2","Data3","Data4"
how do i sepreate each data to array[0][0],array[0][1],array[0][2] and array[0][3]??
i only know how to use getline function to take a whole line of data into an variable.
can sum1 teach me? thanks
chern4ever 0 Light Poster
stilllearning 148 Posting Whiz
chern4ever 0 Light Poster
VernonDozier 2,218 Posting Expert Featured Poster
chern4ever 0 Light Poster
chern4ever 0 Light Poster
Liszt 23 Junior Poster
chern4ever 0 Light Poster
stilllearning 148 Posting Whiz
chern4ever 0 Light Poster
VernonDozier 2,218 Posting Expert Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.