CFD Online Logo CFD Online URL
Home > Forums > FLUENT

how to build a txt file and write the results in?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 22, 2005, 21:36
Default how to build a txt file and write the results in?
Posts: n/a
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!

  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
openfoam 1.6 on debian etch romant OpenFOAM Installation 9 May 6, 2010 02:26
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
Changing the grid on the same set-up Katya FLUENT 12 October 8, 2009 16:31
Write animation file EA FLUENT 13 March 10, 2006 23:28
Write .def file from command line Alejandro CFX 3 September 11, 2005 18:14

All times are GMT -4. The time now is 07:56.