fstream f;
char ch;
int i=0;
string word,word2[200];
f.open("op3_sort.txt",ios::in|ios::out);
if(!f) cout<<"\nUnable To Open File!\n";
else
{
cout<<"\nLet's View D Content!\n";
while(!f.eof())
{
getline(f,word,'\t');
word2[i]=word;
i++;
cout<<word2[i];
}
}
cout<<"\nShowing Data Now\n";
for(int a=0; a<i; a++)
{ cout<<endl;
cout<<word2[a];
}
devourer17 0 Newbie Poster
devourer17 0 Newbie Poster
devourer17 0 Newbie Poster
Ketsuekiame 860 Master Poster Featured Poster
devourer17 0 Newbie Poster
Ketsuekiame 860 Master Poster Featured Poster
devourer17 0 Newbie Poster
Ketsuekiame 860 Master Poster Featured Poster
David W 131 Practically a Posting Shark
devourer17 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.