Can anyone give me the code to open the file called "xyz.dat" and read the values from it and store them in two variable like x and y.

the data in this file is in this format(when opened in notepad text editor)

7.604915,6.401655
5.167884,5.786217
3.442551,8.79269
5.132062,9.018375
5.590475,6.949121
1.766262,3.432147
7.786101,3.571204
6.290994,4.194949

Each row has two values seperated by a comma(,)

I need to read these two values and assign them to some variables such as double or float.

Can someone please give me the code for the same. I'll really be grateful to that person.

Riberet