 int main int argc char argv if argc 2 return 0 ; fstream infile argv 1 ios in ; if infile return 0 ; char c; char text; int numlines 0; int maxlen 0; int curcharinline 0; while infile infile get c ; if c ' n' numline ; if curcharinline maxlen maxlen curcharinline; curcharinline 0; else curcharinline ; 