how to read txt file in c++

Phone Number / Account ID Name Of Subscriber Contact Information plan
123456789 / acc1 chris abcdefg@gmail.com call plan

List Of Usages
ID Type Usages
acc1 internet 300mb

This is a simple text file and I would like to know how to input this text file in c++?
Last edited on
ifstream allows you to open a file, then there are many ways to read the data.
you can read in a line, a word, or a character at a time.
you have to define what your reading in as text, numbers and of course there are different types of numbers such as 10 and 10.01
Topic archived. No new replies allowed.