read data into a link list

can smone plzzzz help me out with this prog.there r no compilation errors but there's no output of prog. its just showing a blank screenhere's the prog.#include#include#include#includestruct node{int info;char name[20];struct node *next;}*first,*n,*temp;void main(){ifstream fin;fin.open("read.txt",ios::in);int i,j,choice;char ch,nam[20];clrscr();first=new node;fin>>i;do{fin.get(ch);}while(fin.get(ch)!=" ");first->info=i;fin.get(nam,20);fin.get(ch);strcpy(first->name,nam);first->next=NULL;printf("Do u want to continue(1 for yes,0 for no)");cin>>choice;while(choice==1){temp=first;while(temp->next!=NULL){temp=temp->next;}n=new node;fin>>i;do{fin.get(ch);}while(fin.get(ch)!=" ");n->info=i;fin.get(nam,20);fin.get(ch);strcpy(n->name,nam);fin.get(ch);n->next=NULL;temp->next=n;printf("Do u want to continue(1 for yes,0 for no)");cin>>choice;}temp=first;printf("Entered list is:");while(temp!=NULL){cout<<temp->info<<" ";cout<<temp->name<<"";

temp=temp->next;

}fin.close();getch();}in this m suppose to read data 4m a file into a lnklistfile is lyk1 aaaa2 bbbbbb3 ccccc

actually m havin prob while reading the space b/w no. and the stringany kind of help will be highly appreciated