rendered paste body#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<dir.h>
#include<stdio.h>
#include<stdlib.h>
class rd{
FILE *out,*fl;
public:
char word[32],wordtemp[32];
char *wordc;
int count;
int i;
rd(){
count=0;
out=fopen("wordlist.txt","r");
fl=fopen("mikeslist.txt","a+");
}
setcount(){
count++;}
setnextword(){
//for(int k=0;k<=32;k++)word[k]=NULL;
i=0; char c;
do{
i++;
//word[i]=NULL;
word[i]=getc(out);
// word[i]=wordtemp[i];
}while(word[i]!='\n') ;
// for(l;l<=32&&wordtemp[l]!='\0'&&wordtemp[l]!='\n';l++){
//word[l]=wordtemp[l];
// } word[l+1]='\0';
//word=wordtemp;
}
displayword(){
/* int j=0;
while(word[j]!='\0'&& word[j]!=' '){
++j;
cout<<word[j];
fputc(word[j],fl);
} fputs(",",fl); cout<<"\n"; */
cout<<word<<endl;
//printf("%s%n",word);
}
bool end(){
if(feof(out))return true;
else return false;
}
};
void main(){
rd obj1;
while(!obj1.end()){
obj1.setnextword();
obj1.displayword();
}
getch();
}