[ns] "How to use fstream in NS2"
raneem31 at yahoo.com
Wed Jan 25 22:11:37 PST 2006
I am trying to create a file that I write to and read
from at the same time (during the simulation).
Actually I want to define this file in one of the
queue classes priqueue.cc.
I keep getting a compilation error
The way I am doing it is: I defined
fstream queueLength; in priqueue.h
in priqueueu.cc in the constructor I say
queueLength ("queues-lengths", std::ios::in | std
I also tried to say in priqueue.cc
queueLength.open("queues-lengths", std::ios::in | std
It compiles but the file doesn't get created (ofcourse
after running the simulation).
Can anybody help...
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Ns-users