read from file IN C++

hey

I want to read values ​​from a file and put it in a numerical array
The file contains more than one line
Each line represents the value of the array
However, the program reads all the values ​​once
In the end, i get the latest value just ....
I want to read the first value
Then used
And come back to read the next one
and so

how can i do it
Thank you

this is the code an using

ifstream ins;
	ins.open("c:\\pos.txt");

	ofstream ots;
	ots.open("c:\\EDes.txt");
	while(!ins.eof())
	{
		for (int j=0 ;j<64;j++)
		ins>>Fkey[j];
		
		Readtext();// read text and convert it to binary 
		Des(Fkey,textB);// sub program am using
		for (int j=0 ;j<64;j++)
			ots<<FPMesg[j];
		ots<<endl;

	}
Topic archived. No new replies allowed.