Input file to a module reg,

3 views
Skip to first unread message

siva ranjani

unread,
Nov 23, 2009, 7:58:22 AM11/23/09
to castalia-...@googlegroups.com
Dear all,
 
             Is it possible to give a text file as a input to the routing module? That text file is generated during the runtime (While running the simulation). If it is possible, kindly list what are the steps to include and read the details from that included text file. Thanks in advance...
 
 
Regards,
 
Siva 

Athanassios Boulis

unread,
Nov 23, 2009, 9:02:30 AM11/23/09
to castalia-...@googlegroups.com

It is possible if you know the name of the filename beforehand. 

I have to say though that I am not really sure why you would name such a file an 
INPUT to the simulation. Clearly it's a product of the simulation that gets to
be used in the simulation, and not an input. Also I am not sure why you
would need to store the results in a file. Why don't you store the data/results
in an appropriate memory structure and use them from there?

There are no special steps to use the data in a file. The filename
can be a parameter (since you talked about input, I still do not see the point).
You can see how we define filenames as parameters from the wireless
channel temporal input parameter.
After you have the filename you can open/parse/use the file and its data
in your code any way you like.
 
Reply all
Reply to author
Forward
0 new messages