How to create a .txt file in bsagent.cc to see the results of leach simulaion in ns2?
i want to see the average energy in a text file like
avg_energy.txt in each round.
I have set file functions to write on that file
but it doesn't work.
can any one help me, plz?
I am in ending position..
thanks in advance.