Question: How to skip comma in readdata

Hi,

 

  I have a file "d:\\test.txt", the content is 

 

       1, 2.0000 + 0. I

 

then I use

f:=readdata(`d:\\test.txt`,2);
for i from 1 to 1 do
print(i,f[i]);
end do:

 

it gives me

***

[[1.]]
1, [1.]

 ***

 

If I remove the comma in the file, I could obtain 2. I do not want to do it manually that remove all commas by hand. Is there any way to skip the commas in readdata?

Please Wait...