question archive how can we read the following txt document(ifstream) and store in a string array in C++

how can we read the following txt document(ifstream) and store in a string array in C++

Subject:Computer SciencePrice:9.82 Bought3

how can we read the following txt document(ifstream) and store in a string array in C++.

abc  			efg										hello
								world
								 			test

 

the string array should be = {"abc","efg","hello", "world", "test"};

I don't know what to do with the extra spaces.

Option 1

Low Cost Option
Download this past answer in few clicks

9.82 USD

PURCHASE SOLUTION

Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

rated 5 stars

Purchased 3 times

Completion Status 100%

Related Questions