Hi all,

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
::ios::out)

I also tried to say in priqueue.cc
queueLength.open("queues-lengths", std::ios::in | std
::ios::out);
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 
http://mail.yahoo.com 

Reply via email to