Hi ..

anyone can help me out to solve this problem...

coding to read the file...

1. this coding is well working... can list down all the data in dataM.txt

```
ifstream OpenFile("D:\\dataM.txt");
int a;
if(!OpenFile)
{
cout << "While opening a file an error is encountered" << endl;
}
else
{
cout << "File is successfully opened" << endl;
}
while(!OpenFile.eof())
{
OpenFile >> a;
cout << a << endl;
}
}
```

Than i want all the dataM.txt can be readable in standard algorithm sorting..

```
void selectionSort(int numbers[], int array_size)
{
int i, j;
int min, temp;
for (i = 0; i < array_size-1; i++)
{
min = i;
for (j = i+1; j < array_size; j++)
{
if (numbers[j] < numbers[min])
min = j;
}
temp = numbers[i];
numbers[i] = numbers[min];
numbers[min] = temp;
}
}
```

my problem is.. my data is stuck and not readable in sorting algorithm...

i have my coding to display all the sorting data after that....

anyone can help me out...tq