{{{ #include #include #include using namespace std; int main() { ifstream fin("input.txt"); ofstream fout("output.txt"); string str; int key; cout<<"키 값을 입력하시오: "; cin>>key; int count=1; while(!fin.eof()) { if(fin.get()=='\n') count++; } fin.close(); ifstream fin1("input.txt"); for(int i=0;i "<