#include <fstream>
#include <cctype>
#include <iostream>
#include <string>
const int num=1024;
using namespace std;
int main(){
ifstream file;
string s;
int i=0;
file.open("words1.txt");
while(getline(file,s)){
for(int i=0; i< s.length(); i++){
cout << s;//prints out the text file just fine. "a dog."
cout << s[0]; /*prints out random stuff. <---my problem. All I want is for this program to print out the char 'a' anywhere i put my s[0].*/
}
}
cout << endl;
file.close();
}