C++ parallel arrays in file

I'm here to ask that how can I read specific information from file and display it
Could this page be of any help?
http://en.cppreference.com/w/cpp/filesystem
Hello FaisalJavaid4546,

1
2
3
4
5
std::string line{""};

std::getline(fileStream, line);

std::cout << line << std::endl;


Beyond that it would depend on what information is in the file and how you want to use it.

After reading a line from the file as with line 3 you could use a string stream to extract the individual fields. Put them into variables defined in a struct then put the struct in a vector for later use.

Reading the file is easy, what you do with that information will get more involved.

Be more specific with your question show any code you have written and describe where you are having a problem. Add a sample of the data file that the program reads.

Hope that helps,

Andy
Topic archived. No new replies allowed.