How do you "create" the text file? If you create it with "w" option, 
you'll get only one record (actually, the last one), because you 
overwrite the existing one. You must open it with "a" option, this way 
you append the record to the file every time.
Hope it helps!

Leo Sánchez.

El 09/03/2011 3:05, ranjana pathak escribió:
> Dear frds,
>
> I m adding one function in aodv, and it is called whenever a link get down
> and writing the output of this function to a text file.
>
> but in this text file only one record is written, Is this possible that in
> case of aodv, rt_down function called only once.
>
> Regards,
> Ranjana

Reply via email to