Solution:
Hello Gavin,
Yes, it is possible with some simple codes. You may my little program below.
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
ifstream file("filename.txt");
string content;
while(file >> content) {
cout << content << ' ';
}
return 0;
}
This simple program will do what are you looking for.
Thanks