Hi
I have the following function which read ASCII characters(separated by space) from a file and I want to print it out to the screen
contents of the data.txt file are like this
70 97 104 97 100
void decode()
{
string str;
string instr;
ifstream inFile;
cout<<endl;
inFile.open("data.txt");
inFile>>str;
for (int i=0;i<=str.length()-1;i++)
{
if(str[i] == ' ')
{
}
}
inFile.close();
selection=0;
}
could anyone here help me to solve this problem
thanks in advance