hai everybody!!!!!!!!!!

how to read data from a text file and store into an array.........
can anyone help me with the coding in vc++...............

Well, first #include <fstream>. Make a type called std::ifstream. This is a stream which can read from files. You should have an array declared so loop through its elements and insert what you read from the file into the successive elements of the array... There's an example here somewhere http://www.cplusplus.com/reference/iostream/istream/operator%3E%3E.html

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.