I need to make a program that asks a user for the name of a text file and reports the number of characters in the text file, and the number of end-of-line characters in the text file. I made a text file called TEXT.txt. I am really completely lost right now...I really don't have anything that makes much sense now, but here it is. Please help me. Thanks.
Code:#include<iostream.h> #include<fstream.h> int main() { ifstream textfile; cout << "Enter the name of a text file: "; cin >> textfile; textfile.open(textfile, ios::in) while(!textfile.eof()) { return 0; }



LinkBack URL
About LinkBacks


