Click here to Skip to main content
15,072,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

please help how to read a text data from textfile in vc++ console application.

Jochen Arndt 2-Dec-15 5:47am
You should be more specific and show what you have tried so far. Or did you even don't know how to open a text file and read the content?
Then searching for "C++ read text file" will give you plenty of examples like

1 solution

It really depends on the input file format.
The file could have CSV format, XML or whatever.
CSV parsing is usually simple, you can build yourself a parser. For XML format, you may find many libraries available. For 'whatever', well, it could be even impossible, if the file format doesn't allow an unambiguos intepretation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900