using UDF to real file
I've been trying to read a table to Fluent using UDF. I started simple: read a file which contains only one number. It can be interpreted, but when I run it, Fluent gave me an error message saying sth like "fatal error", asking me to exit and restart. Then I skipped the reading part (fscanf), and only open a file with "ifp = fopen("myfile.txt", "r"), but there's still the same error message.
I tried to write to a file using fopen and fprintf, and it worked ok.
Can anyone please give an idea why I can write but cannot read using UDF? or, please tell me where I did wrong.
Thank you in advance, Ellen
|All times are GMT -4. The time now is 16:11.|