Mine
public text v1 · immutable#include <iostream>
#include <fstream>
using namespace std;
void countWords();
void countCharacters();
int mian()
{
cout << countWords;
return 0;
}
void countWords()
{
char myString[30];
ifstream myFileInput; //Input File Stream
myFileInput.open("txtdata.txt");
while (myFileInput >> myString)
{
cout << myString << " is read from file" << endl;
}
myFileInput.close();
cout << "Done!" << endl;
}