CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to build a txt file and write the results in? (https://www.cfd-online.com/Forums/fluent/37663-how-build-txt-file-write-results.html)

roy August 22, 2005 21:36

how to build a txt file and write the results in?
 
Hi,everyone could you tell me how to build a .txt file and write the results calculated into this file using UDF codes? what i used were:

fp=fopen("e:\\1f.txt", "w"); fprintf(fp, "%10d, %10d, %10d, %10d\n", count6, acc6, Ad6, Av6);

but nothing were writen to 1f.txt,i don't know what's wrong with it .

could anyone tell me? thanks in advance!

roy


All times are GMT -4. The time now is 08:02.