File operation in UDF
Hi All,
I need to read in 7 different values at every time step into my UDF my txt file has all the data in 7 columns and 100 rows . I need to read the first row at the first time iteration and then the second row and so on. Fseek doesnt work with interpreted UDF. I wanted to know how i can accomplish the tasks I am illustrating my data here time r theta z Re concentration shear 11 12 13 14 15 16 17 21 22 23 24 25 26 27 ..................................... etc part of my UDF DEFINE_EXECUTE_AT_END (exec_at_end) { FILE *fptr; fptr = fopen("pthc.10_1_10c.txt","r")); fseek(fptr,f_counter,SEEK_SET); fscanf("%f %f %f %f %f %f %f ",&time,&r,&theta,&z,&rno,&cdom,&shear); fclosef(fptr); f_counter=f_counter+70; } How to do it without using Fseek ? thanks Ajay |
All times are GMT -4. The time now is 12:07. |