I am trying to firstly to open an existing .txt file to display in my output. i have created a normal notepad with a few lines of txt that i would like to view. i have been trying to use fstream but having no luck. i keep getting that #include <fstream.h> does not exist. using #include <fstream> i just don't get it too open.
i am then trying to assign each word in that string to an array and then join the array after to eliminate all the double and triple spaces in the string. i am not having an luck and starting to get really frustrated. can someone help please.!!!